]
Sebastian Łaskawiec updated ISPN-6977:
--------------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
NumOwnersNodeCrashInSequenceTest random failures
------------------------------------------------
Key: ISPN-6977
URL:
https://issues.jboss.org/browse/ISPN-6977
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 9.0.0.Alpha4, 8.2.4.Final
Reporter: Dan Berindei
Assignee: Dan Berindei
Priority: Critical
Labels: testsuite_stability
Fix For: 9.0.0.Beta1, 9.0.0.Final
The test (and {{NumOwnersNodeStopInSequenceTest}} as well) uses
{{StateSequencerUtil.advanceOnInboundRpc()}}, which replaces the
{{PerCacheInboundInvocationHandler}} and rewires all the components.
The problem is that rewiring {{StateConsumerImpl}} causes it to create a new
{{SemaphoreCompletionService}}, but there's no synchronization when reading the field,
a "background" task could finish on another thread and release the permit on the
old {{SemaphoreCompletionService}} instance.