[infinispan-issues] [JBoss JIRA] (ISPN-2394) Use DataRehashedEvent to signal end of state transfer
Dan Berindei (JIRA)
issues at jboss.org
Fri May 16 11:41:56 EDT 2014
[ https://issues.jboss.org/browse/ISPN-2394?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Berindei resolved ISPN-2394.
--------------------------------
Fix Version/s: 5.2.8.Final
Resolution: Done
{{TestingUtil.waitForRehashToComplete()}} can also be invoked before or after the state transfer started. So it also needs to keep a mechanism to detect whether a consistent hash is "stable", and adding a DataRehashed listener would complicate things too much.
> Use DataRehashedEvent to signal end of state transfer
> -----------------------------------------------------
>
> Key: ISPN-2394
> URL: https://issues.jboss.org/browse/ISPN-2394
> Project: Infinispan
> Issue Type: Task
> Components: State Transfer
> Affects Versions: 5.2.0.ALPHA1
> Reporter: Adrian Nistor
> Assignee: Dan Berindei
> Fix For: 5.2.8.Final
>
>
> Since NBST was introduced the actual completion of state transfer happens later than the TopologyChangedEvent. In unit tests there is currently no simple way to find out when this actually happens so we resorted to some ugly polling (see TestingUtil.waitForRehashToComplete()). Also some other core components could benefit from such an event (eg. StaleTransactionCleanupService, see ISPN-2383).
> The event should contain the CacheTopology that is being confirmed as stable.
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
More information about the infinispan-issues
mailing list