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

Jonathan Halliday (JIRA) jira-events at lists.jboss.org
Thu Jul 5 09:58:12 EDT 2012


Jonathan Halliday created JBTM-1197:
---------------------------------------

             Summary: 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