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

RAMDirectory reports incorrect EOF on seek

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9, 2.0.0, 2.1, 2.2, 2.3, 2.3.1, 2.4, 2.9, 3.0
    • 2.4
    • core/store
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: