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

Handle database restart

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 7.0.0.Alpha4
    • Lucene Directory
    • Hide

      restart database while application using lucene&infinspan and postgres db(although this might happen with other databases as well)

      Show
      restart database while application using lucene&infinspan and postgres db(although this might happen with other databases as well)

      relates to https://issues.jboss.org/browse/ISPN-1680

      scenario:
      restarting database during application run.

      expected:
      App recovery.

      Actual:
      Received error:
      ..
      Caused by: org.hibernate.search.exception.SearchException: Unable to reopen IndexReader
      at org.hibernate.search.indexes.impl.SharingBufferReaderProvider$PerDirectoryLatestReader.refreshAndGet(SharingBufferReaderProvider.java:241) ~[hibernate-search-engine-5.0.0.Alpha4.jar:5.0.0.Alpha4]
      at org.hibernate.search.indexes.impl.SharingBufferReaderProvider.openIndexReader(SharingBufferReaderProvider.java:72) ~[hibernate-search-engine-5.0.0.Alpha4.jar:5.0.0.Alpha4]
      at org.hibernate.search.indexes.impl.SharingBufferReaderProvider.openIndexReader(SharingBufferReaderProvider.java:34) ~[hibernate-search-engine-5.0.0.Alpha4.jar:5.0.0.Alpha4]
      at org.hibernate.search.reader.impl.MultiReaderFactory.openReader(MultiReaderFactory.java:36) ~[hibernate-search-engine-5.0.0.Alpha4.jar:5.0.0.Alpha4]
      at org.hibernate.search.query.engine.impl.HSQueryImpl.buildSearcher(HSQueryImpl.java:617) ~[hibernate-search-engine-5.0.0.Alpha4.jar:5.0.0.Alpha4]
      at org.hibernate.search.query.engine.impl.HSQueryImpl.buildSearcher(HSQueryImpl.java:517) ~[hibernate-search-engine-5.0.0.Alpha4.jar:5.0.0.Alpha4]
      at org.hibernate.search.query.engine.impl.HSQueryImpl.queryEntityInfos(HSQueryImpl.java:251) ~[hibernate-search-engine-5.0.0.Alpha4.jar:5.0.0.Alpha4]
      at org.hibernate.search.query.hibernate.impl.FullTextQueryImpl.list(FullTextQueryImpl.java:198) ~[hibernate-search-orm-5.0.0.Alpha4.jar:5.0.0.Alpha4]
      ...
      Caused by: java.io.IOException: Read past EOF
      at org.infinispan.lucene.impl.SingleChunkIndexInput.readByte(SingleChunkIndexInput.java:54) ~[infinispan-lucene-directory-7.0.0.Alpha4.jar:7.0.0.Alpha4]
      at org.apache.lucene.store.BufferedChecksumIndexInput.readByte(BufferedChecksumIndexInput.java:41) ~[lucene-core-4.8.1.jar:4.8.1 1594670 - rmuir - 2014-05-14 19:22:52]
      at org.apache.lucene.store.DataInput.readInt(DataInput.java:96) ~[lucene-core-4.8.1.jar:4.8.1 1594670 - rmuir - 2014-05-14 19:22:52]
      at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:331) ~[lucene-core-4.8.1.jar:4.8.1 1594670 - rmuir - 2014-05-14 19:22:52]
      at org.apache.lucene.index.SegmentInfos$1.doBody(SegmentInfos.java:416) ~[lucene-core-4.8.1.jar:4.8.1 1594670 - rmuir - 2014-05-14 19:22:52]
      at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:864) ~[lucene-core-4.8.1.jar:4.8.1 1594670 - rmuir - 2014-05-14 19:22:52]
      at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:710) ~[lucene-core-4.8.1.jar:4.8.1 1594670 - rmuir - 2014-05-14 19:22:52]
      at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:412) ~[lucene-core-4.8.1.jar:4.8.1 1594670 - rmuir - 2014-05-14 19:22:52]
      at org.apache.lucene.index.StandardDirectoryReader.isCurrent(StandardDirectoryReader.java:347) ~[lucene-core-4.8.1.jar:4.8.1 1594670 - rmuir - 2014-05-14 19:22:52]
      at org.apache.lucene.index.StandardDirectoryReader.doOpenNoWriter(StandardDirectoryReader.java:301) ~[lucene-core-4.8.1.jar:4.8.1 1594670 - rmuir - 2014-05-14 19:22:52]
      at org.apache.lucene.index.StandardDirectoryReader.doOpenIfChanged(StandardDirectoryReader.java:264) ~[lucene-core-4.8.1.jar:4.8.1 1594670 - rmuir - 2014-05-14 19:22:52]
      at org.apache.lucene.index.StandardDirectoryReader.doOpenIfChanged(StandardDirectoryReader.java:252) ~[lucene-core-4.8.1.jar:4.8.1 1594670 - rmuir - 2014-05-14 19:22:52]
      at org.apache.lucene.index.DirectoryReader.openIfChanged(DirectoryReader.java:171) ~[lucene-core-4.8.1.jar:4.8.1 1594670 - rmuir - 2014-05-14 19:22:52]
      at org.hibernate.search.indexes.impl.SharingBufferReaderProvider$PerDirectoryLatestReader.refreshAndGet(SharingBufferReaderProvider.java:238) ~[hibernate-search-engine-5.0.0.Alpha4.jar:5.0.0.Alpha4]
      ... 121 common frames omitted
      ...

              Unassigned Unassigned
              yaniv5oosh yaniv oren (Inactive)
              Sanne Grinovero (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: