[infinispan-issues] [JBoss JIRA] (ISPN-8251) SoftIndexFileStoreTest.testWriteAndDeleteBatch

Radim Vansa (JIRA) issues at jboss.org
Wed Sep 6 10:31:01 EDT 2017


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

Radim Vansa edited comment on ISPN-8251 at 9/6/17 10:30 AM:
------------------------------------------------------------

I could reproduce another issue in this test. 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.


was (Author: rvansa):
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)


More information about the infinispan-issues mailing list