[infinispan-issues] [JBoss JIRA] (ISPN-2602) Busy wait in BaseStateTransferManagerImpl#waitForStateTransferToStart
Dan Berindei (JIRA)
jira-events at lists.jboss.org
Mon Jan 28 10:44:47 EST 2013
[ https://issues.jboss.org/browse/ISPN-2602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Berindei resolved ISPN-2602.
--------------------------------
Fix Version/s: 5.2.0.Final
(was: 6.0.0.Final)
Resolution: Out of Date
The new state transfer in 5.2 doesn't use this busy wait loop any more - instead it uses a CountDownLatch.
> Busy wait in BaseStateTransferManagerImpl#waitForStateTransferToStart
> ---------------------------------------------------------------------
>
> Key: ISPN-2602
> URL: https://issues.jboss.org/browse/ISPN-2602
> Project: Infinispan
> Issue Type: Bug
> Components: State transfer
> Affects Versions: 5.1.4.FINAL
> Reporter: Dennis Reed
> Assignee: Mircea Markus
> Priority: Minor
> Fix For: 5.2.0.Final
>
>
> BaseStateTransferManagerImpl#waitForStateTransferToStart does a busy wait, sleeping for 10ms in between checking the condition, instead of synchronizing using condition variables (or the equivalent).
> This can cause excessive CPU load if a lot of threads are waiting
> (we have seen 300 threads waiting in this loop at once).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list