[jboss-jira] [JBoss JIRA] Created: (JBAS-8546) Negative Thread.sleep(timeout) call in NewMsgsWorker#run()

Takayoshi Kimura (JIRA) jira-events at lists.jboss.org
Fri Oct 22 03:17:54 EDT 2010


Negative Thread.sleep(timeout) call in NewMsgsWorker#run()
----------------------------------------------------------

                 Key: JBAS-8546
                 URL: https://jira.jboss.org/browse/JBAS-8546
             Project: JBoss Application Server
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: JCA service
    Affects Versions:  6.0.0.M5
            Reporter: Takayoshi Kimura
            Assignee: Jesper Pedersen
             Fix For: TBD-6.x


When this happens the NewMsgsWorker no longer check new emails.

We should check the timeout parameter value before calling Thread.sleep(timeout). Basically there is no guarantee that the timeout is positive value. Say if you activate 10 endpoints very quickly with same interval, the "next - now" calculation would be negative.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list