Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-6404

MemoryIndex payloads are sometimes out of bounds.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2, 6.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      See patch for tests:

      ant test -Dtestcase=TestMemoryIndexAgainstRAMDir -Dtests.method=testRandomQueries -Dtests.seed=CB6EBF17EFD0300E

         [junit4] ERROR   4.82s | TestMemoryIndexAgainstRAMDir.testRandomQueries <<<
         [junit4]    > Throwable #1: java.lang.RuntimeException: term [74 65 6c 6d]: doc 0: pos 85 payload length is out of bounds 0
         [junit4]    > 	at __randomizedtesting.SeedInfo.seed([CB6EBF17EFD0300E:95450FFBD70A1D90]:0)
         [junit4]    > 	at org.apache.lucene.index.CheckIndex.checkFields(CheckIndex.java:1335)
         [junit4]    > 	at org.apache.lucene.index.CheckIndex.testPostings(CheckIndex.java:1694)
         [junit4]    > 	at org.apache.lucene.util.TestUtil.checkReader(TestUtil.java:315)
         [junit4]    > 	at org.apache.lucene.util.TestUtil.checkReader(TestUtil.java:297)
         [junit4]    > 	at org.apache.lucene.index.memory.TestMemoryIndexAgainstRAMDir.assertAgainstRAMDirectory(TestMemoryIndexAgainstRAMDir.java
      

        Attachments

        1. LUCENE-6404_test.patch
          4 kB
          Robert Muir
        2. LUCENE-6404.patch
          5 kB
          Robert Muir

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rcmuir Robert Muir
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: