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

chunks might be deleted while Searcher is iterating

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 4.1.0.CR1
    • None
    • Lucene Directory
    • None
    • High

      This one is quite nasty:
      java.io.IOException: Chunk id = [ 5 ] does not exist for file [ _sc.cfs ] for index [ iname ], file position: [ 88420 ], file size: [ 93015 ]
      at org.infinispan.lucene.InfinispanIndexIO$InfinispanIndexInput.readBytes(InfinispanIndexIO.java:150)
      at org.apache.lucene.store.IndexInput.readBytes(IndexInput.java:61)
      at org.apache.lucene.index.CompoundFileReader$CSIndexInput.readInternal(CompoundFileReader.java:247)
      at org.apache.lucene.store.BufferedIndexInput.readBytes(BufferedIndexInput.java:136)
      at org.apache.lucene.index.SegmentReader$Norm.bytes(SegmentReader.java:469)
      at org.apache.lucene.index.SegmentReader.getNorms(SegmentReader.java:1090)
      at org.apache.lucene.index.SegmentReader.norms(SegmentReader.java:1096)
      at org.apache.lucene.search.TermQuery$TermWeight.scorer(TermQuery.java:72)
      at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:250)
      at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:175)
      at org.apache.lucene.search.Searcher.search(Searcher.java:181)
      at org.infinispan.lucene.profiling.LuceneReaderThread.testLoop(LuceneReaderThread.java:63)
      at org.infinispan.lucene.profiling.LuceneUserThread.run(LuceneUserThread.java:55)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)

      Easily reproducible by starting "mvn test -Dtest=PerformanceCompareStressTest" with the currently committed parameters (r1925)

      I'll likely need an AtomicMap or use transactions while reading?

              sgrinove Sanne Grinovero (Inactive)
              sgrinove Sanne Grinovero (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: