[infinispan-issues] [JBoss JIRA] (ISPN-2726) Sporadic NPE in KeyAffinityServiceImpl
Dan Berindei (JIRA)
issues at jboss.org
Mon Apr 30 04:49:00 EDT 2018
[ https://issues.jboss.org/browse/ISPN-2726?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Berindei resolved ISPN-2726.
--------------------------------
Fix Version/s: 9.0.0.Final
Resolution: Out of Date
With the ISPN-7400 fix {{getAddressForKey()}} now uses {{distributionManager.getCacheTopology().getDistribution(key).primary()}}, which never throws a {{NullPointerException}}. (The DM's cache topology is initialized in {{start()}}.)
> Sporadic NPE in KeyAffinityServiceImpl
> --------------------------------------
>
> Key: ISPN-2726
> URL: https://issues.jboss.org/browse/ISPN-2726
> Project: Infinispan
> Issue Type: Bug
> Components: Core
> Affects Versions: 5.2.0.CR1
> Reporter: Thomas Fromm
> Fix For: 9.0.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 was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the infinispan-issues
mailing list