[
https://issues.jboss.org/browse/ISPN-8933?page=com.atlassian.jira.plugin....
]
William Burns commented on ISPN-8933:
-------------------------------------
Also we can't return the actual value as this would mess up operations that retry the
operation until a stable topology occurs such as collect, toArray, count etc. This is due
to the fact that data container clears the cache and it could read part of the data
causing an inconsistent value. Thus we always throw away results when the cache is
shutting down. We could technically preserve results for operations that don't wait
for a stable topology, but that seems like it would just complicate code more.
NullPointerException in StreamResponseCommand
---------------------------------------------
Key: ISPN-8933
URL:
https://issues.jboss.org/browse/ISPN-8933
Project: Infinispan
Issue Type: Bug
Reporter: Pedro Ruivo
Assignee: William Burns
Fix For: 9.2.1.Final, 9.3.0.Alpha1
{{Cache.isEmpty()}} can fail with timeout with concurrent rebalance.
{code:java}
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]
{code}
There is a {{NullPointerException}} in {{StreamResponseCommand}} that may be related.
{code:java}
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]
{code}
Causes failures in
{noformat}
RemoveCounterTest.testCounterManagerNonExistingRemoveWithBounded()
{noformat}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)