Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-16309

[GSS](7.2.z) WTC-58 - AbstractTransaction#getEstimatedRemainingTime returns wrong value of rounding up which causes timeout of 1 second to be considered invalid

    XMLWordPrintable

    Details

      Description

      The current implementation of the AbstractTransaction#getEstimatedRemainingTime (https://github.com/wildfly/wildfly-transaction-client/blob/1.1.2.Final/src/main/java/org/wildfly/transaction/client/AbstractTransaction.java#L138) returns wrong value of estimated time while returning one less. That causes that timeout of 1 seconds is invalid value. Then the estimated remaining time returns it as 0 seconds to elapse.

      The bug is that because of the subtraction, it should round "down".

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              istudens Ivo Studensky
              Reporter:
              istudens Ivo Studensky
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: