-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
Cache.isEmpty() can fail with timeout with concurrent rebalance.
2018-03-12 11:48:45,699 ERROR (testng-RemoveCounterTest) [org.infinispan.commons.test.TestSuiteProgress] Test failed: org.infinispan.counter.RemoveCounterTest.testCounterManagerNonExistingRemoveWithBounded
org.infinispan.util.concurrent.TimeoutException: null
at org.infinispan.stream.impl.AbstractCacheStream.performOperationRehashAware(AbstractCacheStream.java:298) ~[infinispan-core-9.2.1-SNAPSHOT.jar:9.2.1-SNAPSHOT]
at org.infinispan.stream.impl.AbstractCacheStream.performOperation(AbstractCacheStream.java:218) ~[infinispan-core-9.2.1-SNAPSHOT.jar:9.2.1-SNAPSHOT]
at org.infinispan.stream.impl.DistributedCacheStream.anyMatch(DistributedCacheStream.java:414) ~[infinispan-core-9.2.1-SNAPSHOT.jar:9.2.1-SNAPSHOT]
at org.infinispan.cache.impl.CacheImpl.isEmpty(CacheImpl.java:438) ~[infinispan-core-9.2.1-SNAPSHOT.jar:9.2.1-SNAPSHOT]
at org.infinispan.cache.impl.CacheImpl.isEmpty(CacheImpl.java:434) ~[infinispan-core-9.2.1-SNAPSHOT.jar:9.2.1-SNAPSHOT]
There is a NullPointerException in StreamResponseCommand that may be related.
2018-03-12 11:48:30,698 WARN (remote-thread-RemoveCounterTest-NodeA-p10-t4) [org.infinispan.remoting.inboundhandler.TrianglePerCacheInboundInvocationHandler] ISPN000071: Caught exception when handling command StreamResponseCommand{id=RemoveCounterTest-NodeA-6448335, complete=true, response=null} java.lang.NullPointerException: null at org.infinispan.stream.impl.DistributedCacheStream.lambda$anyMatch$4(DistributedCacheStream.java:414) ~[infinispan-core-9.2.1-SNAPSHOT.jar:9.2.1-SNAPSHOT] at org.infinispan.stream.impl.ClusterStreamManagerImpl$RequestTracker.lastResult(ClusterStreamManagerImpl.java:707) ~[infinispan-core-9.2.1-SNAPSHOT.jar:9.2.1-SNAPSHOT] at org.infinispan.stream.impl.ClusterStreamManagerImpl.receiveResponse(ClusterStreamManagerImpl.java:410) ~[infinispan-core-9.2.1-SNAPSHOT.jar:9.2.1-SNAPSHOT] at org.infinispan.stream.impl.StreamSegmentResponseCommand.invokeAsync(StreamSegmentResponseCommand.java:39) ~[infinispan-core-9.2.1-SNAPSHOT.jar:9.2.1-SNAPSHOT] at org.infinispan.remoting.inboundhandler.BasePerCacheInboundInvocationHandler.invokeCommand(BasePerCacheInboundInvocationHandler.java:94) ~[infinispan-core-9.2.1-SNAPSHOT.jar:9.2.1-SNAPSHOT] at org.infinispan.remoting.inboundhandler.BaseBlockingRunnable.invoke(BaseBlockingRunnable.java:99) [infinispan-core-9.2.1-SNAPSHOT.jar:9.2.1-SNAPSHOT] at org.infinispan.remoting.inboundhandler.BaseBlockingRunnable.runAsync(BaseBlockingRunnable.java:71) [infinispan-core-9.2.1-SNAPSHOT.jar:9.2.1-SNAPSHOT] at org.infinispan.remoting.inboundhandler.BaseBlockingRunnable.run(BaseBlockingRunnable.java:40) [infinispan-core-9.2.1-SNAPSHOT.jar:9.2.1-SNAPSHOT] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_152] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_152] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_152]
Causes failures in
RemoveCounterTest.testCounterManagerNonExistingRemoveWithBounded()