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

Takayoshi Kimura (JIRA) jira-events at lists.jboss.org
Sun Oct 24 21:01:54 EDT 2010


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

Takayoshi Kimura updated JBAS-8546:
-----------------------------------

    Attachment: JBAS-8546.patch


> 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
>
>         Attachments: JBAS-8546.patch
>
>
> 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