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

RAMDirectory reports incorrect EOF on seek

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9, 2.0.0, 2.1, 2.2, 2.3, 2.3.1, 2.4, 2.9, 3.0
    • Fix Version/s: 2.4
    • Component/s: core/store
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      If you create a file whose length is a multiple of 1024 (BUFFER_SIZE),
      and then try to seek to the very end of the file, you hit
      EOFException.

      But this is actually "legal" as long as you don't try to read any
      bytes at that point.

      I'm hitting this (rarely) with the bulk-merging logic for term vectors
      (LUCENE-1120), which can seek to the very end of the file but not read
      any bytes if conditions are right.

        Attachments

        1. LUCENE-1196.patch
          3 kB
          Michael McCandless

          Activity

            People

            • Assignee:
              mikemccand Michael McCandless
              Reporter:
              mikemccand Michael McCandless
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: