[jbossts-issues] [JBoss JIRA] (JBTM-2266) TransactionReaper is using currentTimeMillis for timeout calculation
David Lloyd (JIRA)
issues at jboss.org
Wed Oct 1 12:24:02 EDT 2014
David Lloyd created JBTM-2266:
Summary: TransactionReaper is using currentTimeMillis for timeout calculation
Project: JBoss Transaction Manager
Issue Type: Bug
Affects Versions: 5.0.3
Reporter: David Lloyd
Assignee: Tom Jenkinson
Noticed while browsing through some code that the TransactionReaper uses currentTimeMillis() to calculate timeouts. However this method can change if the system time has changed.
An artificial clock based on System.nanoTime() should be used instead, since while this time may vary slightly between cores, in general it will be highly accurate and, most importantly, monotonic and steady (and unaffected by changes to the system time).
This message was sent by Atlassian JIRA
More information about the jbossts-issues