Infinispan 9.0.3.Final - Unable to start cache loaders exception
noakov Jul 26, 2019 5:44 AMHi everyone,
We use version '9.0.3.Final' of infinispan and encountered some problem:
Our application shut down non-gracefully (perhaps in a middle of writing to infinispan cache). When we tried to restart the program, we got the following exception:
org.infinispan.commons.CacheException: Unable to start cache loaders
at org.infinispan.persistence.manager.PersistenceManagerImpl.start(PersistenceManagerImpl.java:195)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.infinispan.commons.util.SecurityActions.lambda$invokeAccessibly$0(SecurityActions.java:91)
... 91 common frames omitted
Caused by: org.infinispan.persistence.spi.PersistenceException: java.lang.ArrayIndexOutOfBoundsException: 0
at org.infinispan.persistence.sifs.SoftIndexFileStore.forEachOnDisk(SoftIndexFileStore.java:509)
at org.infinispan.persistence.sifs.SoftIndexFileStore.start(SoftIndexFileStore.java:162)
at org.infinispan.persistence.manager.PersistenceManagerImpl.lambda$start$0(PersistenceManagerImpl.java:160)
at java.util.ArrayList.forEach(ArrayList.java:1249)
at org.infinispan.persistence.manager.PersistenceManagerImpl.start(PersistenceManagerImpl.java:176)
... 96 common frames omitted
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at org.infinispan.marshall.core.BytesObjectInput.readByte(BytesObjectInput.java:110)
at org.infinispan.marshall.core.BytesObjectInput.readUnsignedByte(BytesObjectInput.java:115)
at org.infinispan.marshall.core.GlobalMarshaller.readNullableObject(GlobalMarshaller.java:360)
at org.infinispan.marshall.core.GlobalMarshaller.objectFromObjectInput(GlobalMarshaller.java:199)
at org.infinispan.marshall.core.GlobalMarshaller.objectFromByteBuffer(GlobalMarshaller.java:195)
at org.infinispan.persistence.sifs.SoftIndexFileStore$1.apply(SoftIndexFileStore.java:168)
at org.infinispan.persistence.sifs.SoftIndexFileStore.forEachOnDisk(SoftIndexFileStore.java:496)
... 100 common frames omitted
Seems like the index files are corrupted. Is there any way to recover those files?
Thanks,
Noa