[jbossts-issues] [JBoss JIRA] (JBTM-1197) large tx timeouts are bugged

Tom Jenkinson (JIRA) jira-events at lists.jboss.org
Mon Jul 9 12:21:12 EDT 2012


     [ https://issues.jboss.org/browse/JBTM-1197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom Jenkinson resolved JBTM-1197.
---------------------------------

    Resolution: Done

    
> large tx timeouts are bugged
> ----------------------------
>
>                 Key: JBTM-1197
>                 URL: https://issues.jboss.org/browse/JBTM-1197
>             Project: JBoss Transaction Manager
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Transaction Core
>    Affects Versions: 4.16.4
>            Reporter: Jonathan Halliday
>            Assignee: Tom Jenkinson
>
> When CoordinatorEnvironmentBean.defaultTimeout approaches Integer.MAX_VALUE, the calculation in ReaperElement.<ctor> wraps, resulting in an immediate tx timeout
> _absoluteTimeoutMills = (timeout * 1000) + System.currentTimeMillis();
> should be
> _absoluteTimeoutMills = (timeout * 1000L) + System.currentTimeMillis();
> in order to avoid -ve i.e. times in the past when timeout is large.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbossts-issues mailing list