[infinispan-issues] [JBoss JIRA] (ISPN-10095) Shared stores should throw exception when cache is local

Vladimir Dzhuvinov (Jira) issues at jboss.org
Sat Mar 30 03:43:01 EDT 2019


    [ https://issues.jboss.org/browse/ISPN-10095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13715258#comment-13715258 ] 

Vladimir Dzhuvinov commented on ISPN-10095:
-------------------------------------------

Yesterday we encountered this issue in a test with local cache and shared=true, the test ran but an NPE exception was noticed in the logs:

{{2019-03-30T02:25:42,016 WARN expiration-thread--p3-t1 PersistenceManagerImpl - ISPN000026: Caught exception purging data container!
java.lang.NullPointerException: null
        at org.infinispan.persistence.manager.PersistenceManagerImpl.lambda$purgeExpired$6(PersistenceManagerImpl.java:454) ~[infinispan-core-9.4.11.Final.jar:9.4.11.Final]
        at java.util.ArrayList.forEach(ArrayList.java:1257) ~[?:1.8.0_191]
        at org.infinispan.persistence.manager.PersistenceManagerImpl.purgeExpired(PersistenceManagerImpl.java:465) [infinispan-core-9.4.11.Final.jar:9.4.11.Final]
        at org.infinispan.expiration.impl.ExpirationManagerImpl.processExpiration(ExpirationManagerImpl.java:111) [infinispan-core-9.4.11.Final.jar:9.4.11.Final]
        at org.infinispan.expiration.impl.ExpirationManagerImpl$ScheduledTask.run(ExpirationManagerImpl.java:245) [infinispan-core-9.4.11.Final.jar:9.4.11.Final]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_191]
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:1.8.0_191]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_191]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:1.8.0_191]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_191]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_191]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191]}}

> Shared stores should throw exception when cache is local
> --------------------------------------------------------
>
>                 Key: ISPN-10095
>                 URL: https://issues.jboss.org/browse/ISPN-10095
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Configuration, Core
>    Affects Versions: 10.0.0.Beta3, 9.4.11.Final
>            Reporter: Ryan Emerson
>            Assignee: Ryan Emerson
>            Priority: Major
>             Fix For: 10.0.0.Beta4, 9.4.12.Final
>
>
> A shared store does not make sense with a local cache, therefore we should throw a {{CacheConfigurationException}} if configured. Due to assumptions elsewhere in the PersistenceManager, prior to this fix a NPE will be thrown during the Purge method of the store as {{transport == null}}.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the infinispan-issues mailing list