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

SoftIndexFileStoreTest failures

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 9.1.0.Final
    • Loaders and Stores
    • None

    Description

      Failure encountered on SoftIndexFileStore::testWriteAndDeleteBatch, however SoftIndexFileStore does not implement writeBatch, so this implies the problem can also occur with normal write operations.

            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
          
      

      Another failure encountered with SoftIndexFileStoreTest::testOverrideWithExpirableAndCompaction

      org.infinispan.persistence.spi.PersistenceException: org.infinispan.persistence.spi.PersistenceException: Index looks corrupt
      	at org.infinispan.persistence.sifs.SoftIndexFileStore.load(SoftIndexFileStore.java:420)
      	at org.infinispan.persistence.sifs.SoftIndexFileStoreTest.testOverrideWithExpirableAndCompaction(SoftIndexFileStoreTest.java:185)
      	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.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
      	at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
      	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
      	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
      	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
      	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
      	at org.testng.TestRunner.privateRun(TestRunner.java:767)
      	at org.testng.TestRunner.run(TestRunner.java:617)
      	at org.testng.SuiteRunner.runTest(SuiteRunner.java:348)
      	at org.testng.SuiteRunner.access$000(SuiteRunner.java:38)
      	at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:382)
      	at org.testng.internal.thread.ThreadUtil$2.call(ThreadUtil.java:64)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: org.infinispan.persistence.spi.PersistenceException: Index looks corrupt
      	at org.infinispan.persistence.sifs.IndexNode.applyOnLeaf(IndexNode.java:295)
      	at org.infinispan.persistence.sifs.Index.getRecord(Index.java:94)
      	at org.infinispan.persistence.sifs.SoftIndexFileStore.load(SoftIndexFileStore.java:414)
      	... 21 more
      Caused by: org.infinispan.persistence.sifs.IndexNode$IndexNodeOutdatedException: 12:546
      	at org.infinispan.persistence.sifs.IndexNode$LeafNode.loadRecord(IndexNode.java:989)
      	at org.infinispan.persistence.sifs.IndexNode$ReadOperation$1.apply(IndexNode.java:222)
      	at org.infinispan.persistence.sifs.IndexNode$ReadOperation$1.apply(IndexNode.java:219)
      	at org.infinispan.persistence.sifs.IndexNode.applyOnLeaf(IndexNode.java:291)
      	... 23 more
      

      Attachments

        Issue Links

          Activity

            People

              remerson@redhat.com Ryan Emerson
              remerson@redhat.com Ryan Emerson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: