Delay is not properly coded in MessagingClusterHealthMBean.makeSureDelay()
--------------------------------------------------------------------------
Key: JBMESSAGING-1911
URL:
https://issues.jboss.org/browse/JBMESSAGING-1911
Project: JBoss Messaging
Issue Type: Bug
Components: JMS Clustering
Affects Versions: 1.4.8.SP5, 1.4.0.SP3.CP14
Reporter: Yong Hao Gao
Assignee: Yong Hao Gao
Priority: Minor
Fix For: 1.4.0.SP3.CP15, 1.4.8.SP6
private void makeSureDelay()
{
long delay = shutdownDelay;
while (delay > 0)
{
long stopTime = System.currentTimeMillis();
try
{
Thread.sleep(delay);
}
catch (InterruptedException e)
{
}
delay = shutdownDelay - (System.currentTimeMillis() - stopTime);
}
}
where the stetement
long stopTime = System.currentTimeMillis();
should be outside the while loop.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira