[jboss-jira] [JBoss JIRA] (JBMESSAGING-1911) Delay is not properly coded in MessagingClusterHealthMBean.makeSureDelay()

Yong Hao Gao (Closed) (JIRA) jira-events at lists.jboss.org
Sun Dec 25 23:39:09 EST 2011


     [ https://issues.jboss.org/browse/JBMESSAGING-1911?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yong Hao Gao closed JBMESSAGING-1911.
-------------------------------------

    Resolution: Done

    
> 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.0.SP3.CP14, 1.4.8.SP5
>            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

        


More information about the jboss-jira mailing list