[
https://issues.jboss.org/browse/ISPN-2726?page=com.atlassian.jira.plugin....
]
Galder Zamarreño commented on ISPN-2726:
----------------------------------------
Assigning this to Mircea who's the expert of the KeyAffinityServiceImpl.
Assuming this is related to rehashing, getAddressForKey() could return null and in
generateKeys(), the address returned is null, it could continue the loop. The biggest
problem there is what happens when getCollocatedKey() calls getAddressForKey(), what to do
with a null Address? The only possibility there would be to wait until address is not
null, but that looks a hack for me.
[~dan.berindei], should DistributionManager.getConsistentHash() return null at all?
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: Mircea Markus
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