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

fix assertions/checks that use File.length() to use getFilePointer()

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.6
    • Fix Version/s: 3.6
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      This came up on this thread "Getting RuntimeException: after flush: fdx size mismatch while Indexing"
      (http://www.lucidimagination.com/search/document/a8db01a220f0a126)

      In trunk, a side effect of the codec refactoring is that these assertions were pushed into codecs as finish() before close().
      they check getFilePointer() instead in this computation, which checks that lucene did its part (instead of falsely tripping if directory metadata is stale).

      I think we should fix these checks/asserts on 3.x too

        Attachments

        1. LUCENE-3727.patch
          2 kB
          Robert Muir
        2. LUCENE-3727.patch
          8 kB
          Robert Muir

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: