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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.6
    • 3.6
    • None
    • None
    • 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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment