[jboss-remoting-issues] [JBoss JIRA] Commented: (JBREM-1166) Possible race condition in ConnectionValidator

Ron Sigal (JIRA) jira-events at lists.jboss.org
Sun Dec 13 19:13:30 EST 2009


    [ https://jira.jboss.org/jira/browse/JBREM-1166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12499622#action_12499622 ] 

Ron Sigal commented on JBREM-1166:
----------------------------------

Moved creation of Timer before scheduling ConnectionValidator on TimerUtil.

Changes applied to 2.2 and 2.x branches.

Unit test: org.jboss.test.remoting.connection.ConnectionValidatorNPETestCase .

Waiting for hudson results.

> Possible race condition in ConnectionValidator
> ----------------------------------------------
>
>                 Key: JBREM-1166
>                 URL: https://jira.jboss.org/jira/browse/JBREM-1166
>             Project: JBoss Remoting
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 2.2.3, 2.2.3.SP1, 2.5.2 (Flounder)
>            Reporter: Takayoshi Kimura
>            Assignee: Ron Sigal
>             Fix For: 2.2.3.SP2, 2.5.2.SP1 (Flounder)
>
>
> The 2.2.3 has a minor regression. The ConnectionValidator#start() has been moved outside of synchronized block in this release, this leads a race condition problem.
> ConnectionValidator#start():
>  TimerUtil.schedule(this, pingPeriod); // will call ConnectionValidator.run()
>  timer = new Timer(true); // is used in ConnectionValidator.run()
> These 2 lines looks odd, because it initializes the timer for new thread after spawn the thread. In 2.2.2-SP11 the timer variable is protected by synchronized blocks, so it's not the case.

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

        


More information about the jboss-remoting-issues mailing list