[infinispan-dev] NPE in SingleFileStore during node shutdown

Andreas Kruthoff andreas.kruthoff at nexustelecom.com
Tue Feb 24 09:11:23 EST 2015


Hi Dev


 From time to time, I'm running into this exception which causes the
node to hang.

Exception in thread "persistence-thread--p5-t1"
org.infinispan.persistence.spi.PersistenceException:
java.lang.NullPointerException
        at
org.infinispan.persistence.file.SingleFileStore$2.run(SingleFileStore.java:672)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
        at
org.infinispan.persistence.file.SingleFileStore.free(SingleFileStore.java:306)
        at
org.infinispan.persistence.file.SingleFileStore.access$1200(SingleFileStore.java:63)
        at
org.infinispan.persistence.file.SingleFileStore$2.run(SingleFileStore.java:670)
        ... 3 more


My scenario:

Start 3 distributed nodes, owners="2", filestore with preload="true"
shared="true" purge="false". About 20 Mio entries in the .dat file.

The state-transfer takes about 5 Minutes, the cluster is ready
afterwards, but still very busy operating on the filestore!

If I stop a node now, the exception happens. If I wait for about 30
Minutes (after the cpu load reduces), and the shutdown of a node works
without problems. It persists its entries.

Shall I create a JIRA or am I missing something?

This email and any attachment may contain confidential information which is intended for use only by the addressee(s) named above. If you received this email by mistake, please notify the sender immediately, and delete the email from your system. You are prohibited from copying, disseminating or otherwise using the email or any attachment.



More information about the infinispan-dev mailing list