[infinispan-issues] [JBoss JIRA] (ISPN-9501) AbstractCacheStream.performOperationRehashAware() can hang
William Burns (JIRA)
issues at jboss.org
Tue Sep 11 09:18:01 EDT 2018
[ https://issues.jboss.org/browse/ISPN-9501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13631778#comment-13631778 ]
William Burns commented on ISPN-9501:
-------------------------------------
#1 is a simple fix: https://github.com/danberindei/infinispan/blob/e020c8bccf9ba0b7af8a0983c4f058f7737fc78a/core/src/main/java/org/infinispan/stream/impl/AbstractCacheStream.java#L323 needs to be changed to {code} segmentsToProcess = IntSets.mutableCopyFrom(remoteResults.lostSegments); {code}. Unfortunately https://github.com/danberindei/infinispan/blob/e020c8bccf9ba0b7af8a0983c4f058f7737fc78a/core/src/main/java/org/infinispan/stream/impl/AbstractCacheStream.java#L405 had it correct, both references were not updated properly :(
> AbstractCacheStream.performOperationRehashAware() can hang
> ----------------------------------------------------------
>
> Key: ISPN-9501
> URL: https://issues.jboss.org/browse/ISPN-9501
> Project: Infinispan
> Issue Type: Bug
> Components: Core
> Affects Versions: 9.4.0.CR1
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Fix For: 9.4.0.Final
>
>
> There are actually 2 different issues:
> # {{segmentsToProcess}} reuses the {{remoteResults.lostSegments}} {{ConcurrentSmallIntSet}} instance, so when {{remoteResults.lostSegments}} is cleared, {{segmentsToProcess}} is also cleared.
> # Because of ISPN-9500, {{segmentsToProcess.isEmpty()}} keeps returning {{false}}, so {{performOperationRehashAware()}} keeps waiting for a newer topology.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the infinispan-issues
mailing list