Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-8251

SoftIndexFileStoreTest.testWriteAndDeleteBatch

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

      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

            [ISPN-8251] SoftIndexFileStoreTest.testWriteAndDeleteBatch

            Radim Vansa (Inactive) added a comment - - edited

            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.

            Radim Vansa (Inactive) added a comment - - edited 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.

              rvansa1@redhat.com Radim Vansa (Inactive)
              ttarrant@redhat.com Tristan Tarrant
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: