[
https://issues.jboss.org/browse/ISPN-2726?page=com.atlassian.jira.plugin....
]
Galder Zamarreño commented on ISPN-2726:
----------------------------------------
Hmmm, odd. Having looked around no other call to getConsistentHash() expects some kind of
null return, so it must be due to some race condition.
Could you tell us more about the circumstances under which this exception appears?
Maybe the call is happening during rehashing? If the issue is related to rehashing, we
could maybe halt KeyAffinityServiceImpl generating keys while rehashing is on-going.
Sporadic NPE in KeyAffinityServiceImpl
--------------------------------------
Key: ISPN-2726
URL:
https://issues.jboss.org/browse/ISPN-2726
Project: Infinispan
Issue Type: Bug
Components: Distributed Cache
Affects Versions: 5.2.0.CR1
Reporter: Thomas Fromm
Assignee: Galder Zamarreño
Fix For: 5.2.0.Final
The NPE appears not often, unfortunality with enabled TRACE logging, it never appears :-(
I'll keep trying to get TRACEs.
Exception in thread "pool-70-thread-1" java.lang.NullPointerException
at
org.infinispan.affinity.KeyAffinityServiceImpl.getAddressForKey(KeyAffinityServiceImpl.java:347)
at
org.infinispan.affinity.KeyAffinityServiceImpl.access$700(KeyAffinityServiceImpl.java:59)
at
org.infinispan.affinity.KeyAffinityServiceImpl$KeyGeneratorWorker.generateKeys(KeyAffinityServiceImpl.java:270)
at
org.infinispan.affinity.KeyAffinityServiceImpl$KeyGeneratorWorker.run(KeyAffinityServiceImpl.java:242)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira