Bug 900984 (JBPAPP6-1396) - Setting transaction timeout on UserTransaction leaks to the thread and doesn't get cleared
Summary: Setting transaction timeout on UserTransaction leaks to the thread and doesn'...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: JBPAPP6-1396
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: EJB
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: DR10
: EAP 6.4.0
Assignee: David M. Lloyd
QA Contact: Jan Martiska
URL: http://jira.jboss.org/jira/browse/JBP...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-03 09:04 UTC by Ravi Bhardwaj
Modified: 2019-08-19 12:45 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker AS7-5641 0 Major Open Setting transaction timeout on UserTransaction leaks to the thread and doesn't get cleared 2016-12-09 17:28:35 UTC
Red Hat Issue Tracker JBPAPP6-1396 0 Major Closed Setting transaction timeout on UserTransaction leaks to the thread and doesn't get cleared 2016-12-09 17:28:35 UTC

Description Ravi Bhardwaj 2012-10-03 09:04:10 UTC
Help Desk Ticket Reference: https://gss--c.na7.visual.force.com/apex/Case_View?id=500A000000AvUyo&sfdc.override=1
project_key: JBPAPP6

A user has reported (with an example) that setting a transaction timeout on the UserTransaction will leak the timeout onto the thread and subsequent transaction creation on that thread uses the leaked value instead of new values.

More details in the referenced forum thread and the jira.

Comment 1 Ravi Bhardwaj 2012-10-03 09:05:37 UTC
Link: Added: This issue relates to AS7-5641


Comment 4 tom.jenkinson 2012-10-03 09:43:31 UTC
Hi Ravi,

This got assigned to me but the AS7 issue is assigned to David, so I am assigning it to him.

Thanks,
Tom

Comment 5 Anne-Louise Tangring 2012-11-13 20:57:54 UTC
Docs QE Status: Removed: NEW 


Comment 6 David M. Lloyd 2013-03-13 12:29:05 UTC
From the forum thread from jhaliday:
"Per the spec the timeout is NOT scoped to the transaction, it's scoped to the Thread. If you want to reset it, you explicitly call setTransactionTimeout(0). Arguably in a Thread pooled environment it's the job of the pooling logic to do that, to give the user the impression they have a new Thread even when it's actually recycled. But that's for the EJB container to address, not the transaction manager. The TM is not aware of the thread pooling and has no opportunity to do such a reset. This is not a TM bug."

So.. this is not a bug.  How do I reject a BZ?

Comment 7 Ivo Studensky 2013-08-14 10:06:08 UTC
This indeed is a bug. Although it is not a TM bug, it is a bug in the EJB container.

Comment 11 David M. Lloyd 2014-11-13 14:04:39 UTC
FWIW my comment #6 is nonsense.  There is a fix just about ready for this issue.

Comment 13 Jan Martiska 2014-11-26 14:05:01 UTC
Verified in EAP 6.4.0.DR11


Note You need to log in before you can comment on or make changes to this bug.