[jboss-jira] [JBoss JIRA] Updated: (JBREM-1166) Possible race condition in ConnectionValidator
Ron Sigal (JIRA)
jira-events at lists.jboss.org
Thu Nov 12 10:32:05 EST 2009
[ https://jira.jboss.org/jira/browse/JBREM-1166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ron Sigal updated JBREM-1166:
-----------------------------
Fix Version/s: 2.5.2.SP1 (Flounder)
Affects Version/s: 2.5.2 (Flounder)
Assignee: Ron Sigal
Thanks, Takayoshi. I've scheduled the fix for the next releases.
> 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-jira
mailing list