[
https://issues.jboss.org/browse/ISPN-8251?page=com.atlassian.jira.plugin....
]
Radim Vansa commented on ISPN-8251:
-----------------------------------
I could reproduce this issue. If the {{store.process()}} method commences before moving
entry from a compacted file to a new file, the new file is ignored. This is because the
{{forEachOnDisk}} does not rescan the files/record new ones that are being created.
SoftIndexFileStoreTest.testWriteAndDeleteBatch
----------------------------------------------
Key: ISPN-8251
URL:
https://issues.jboss.org/browse/ISPN-8251
Project: Infinispan
Issue Type: Bug
Components: Loaders and Stores
Affects Versions: 9.1.0.Final
Reporter: Tristan Tarrant
Assignee: Radim Vansa
org.infinispan.persistence.spi.PersistenceException: java.lang.IllegalStateException: End
of file reached when reading key on 5:351
at
org.infinispan.persistence.sifs.SoftIndexFileStore.forEachOnDisk(SoftIndexFileStore.java:509)
at
org.infinispan.persistence.sifs.SoftIndexFileStore.process(SoftIndexFileStore.java:519)
at org.infinispan.test.TestingUtil.allEntries(TestingUtil.java:1534)
at org.infinispan.test.TestingUtil.allEntries(TestingUtil.java:1539)
at
org.infinispan.persistence.BaseStoreTest.testWriteAndDeleteBatch(BaseStoreTest.java:540)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalStateException: End of file reached when reading key on
5:351
at org.infinispan.persistence.sifs.EntryRecord.readKey(EntryRecord.java:77)
at
org.infinispan.persistence.sifs.SoftIndexFileStore.forEachOnDisk(SoftIndexFileStore.java:476)
... 24 more
... Removed 16 stack frames
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)