Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-1197

large tx timeouts are bugged

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.16.5, 4.17.0
    • 4.16.4
    • Transaction Core
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              thjenkin@redhat.com Tom Jenkinson
              rhn-engineering-jhallida Jonathan Halliday
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: