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

large tx timeouts are bugged

XMLWordPrintable

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

      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.

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

                Created:
                Updated:
                Resolved: