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

      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".

              istudens@redhat.com Ivo Studensky
              istudens@redhat.com Ivo Studensky
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: