]
Galder Zamarreño updated ISPN-7098:
-----------------------------------
Fix Version/s: 9.4.0.Final
(was: 9.3.0.Final)
FunctionalDistributionTest.testDistributionFromPrimaryOwner random
failures
---------------------------------------------------------------------------
Key: ISPN-7098
URL:
https://issues.jboss.org/browse/ISPN-7098
Project: Infinispan
Issue Type: Bug
Components: Core, Test Suite - Core
Affects Versions: 9.0.0.Alpha4
Reporter: Dan Berindei
Priority: Critical
Labels: testsuite_stability
Fix For: 9.4.0.Final
{{FunctionalDistributionTest.testDistributionFromPrimaryOwner}} assumes 100ms is enough
for the command to be executed on both backup owners, but that's not always true --
e.g. when TRACE logging is enabled.
{noformat}
15:27:36,079 TRACE (async-thread-Test-NodeC-p36570-t1:[]) [InvocationContextInterceptor]
Invoked with command ReadWriteKeyCommand {key=testDistributionFromPrimaryOwner, flags=[]}
and InvocationContext [org.infinispan.context.SingleKeyNonTxInvocationContext@44ffeec2]
15:27:36,124 TRACE (async-thread-Test-NodeC-p36570-t1:[]) [JGroupsTransport]
dests=[Test-NodeC-21089, Test-NodeD-31203],
command=SingleRpcCommand{cacheName='dist', command=ReadWriteKeyCommand
{key=testDistributionFromPrimaryOwner, flags=[]}}, mode=ASYNCHRONOUS, timeout=15000
15:27:36,140 TRACE (async-thread-Test-NodeC-p36570-t1:[]) [DefaultDataContainer] Store
MetadataImmortalCacheEntry{key=testDistributionFromPrimaryOwner, value=1,
metadata=MetaParamsInternalMetadata{params=MetaParams{metas=[]}}} in container
15:27:36,144 TRACE (Incoming-1,Test-NodeD-31203:[]) [InvocationContextInterceptor]
Invoked with command ReadWriteKeyCommand {key=testDistributionFromPrimaryOwner, flags=[]}
and InvocationContext [org.infinispan.context.SingleKeyNonTxInvocationContext@73111d9]
15:27:36,241 ERROR (testng-Test:[]) [TestSuiteProgress] Test failed:
org.infinispan.functional.FunctionalDistributionTest.testDistributionFromPrimaryOwner
java.lang.NullPointerException
at
org.infinispan.functional.FunctionalDistributionTest.lambda$iterate$8(FunctionalDistributionTest.java:101)
~[test-classes/:?]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
~[?:1.8.0_101]
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
~[?:1.8.0_101]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
~[?:1.8.0_101]
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
~[?:1.8.0_101]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[?:1.8.0_101]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
~[?:1.8.0_101]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
~[?:1.8.0_101]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_101]
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
~[?:1.8.0_101]
at
org.infinispan.functional.FunctionalDistributionTest.iterate(FunctionalDistributionTest.java:102)
~[test-classes/:?]
at
org.infinispan.functional.FunctionalDistributionTest.doTestDistribution(FunctionalDistributionTest.java:80)
~[test-classes/:?]
at
org.infinispan.functional.FunctionalDistributionTest.testDistributionFromPrimaryOwner(FunctionalDistributionTest.java:46)
~[test-classes/:?]
15:27:36,259 TRACE (Incoming-1,Test-NodeD-31203:[]) [DefaultDataContainer] Store
MetadataImmortalCacheEntry{key=testDistributionFromPrimaryOwner, value=1,
metadata=MetaParamsInternalMetadata{params=MetaParams{metas=[]}}} in container
{noformat}