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

Attempting to add documents past limit can corrupt index

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.10, 7.0, 8.0
    • Fix Version/s: 7.1.1, 7.2, 8.0
    • Component/s: core/index
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      The IndexWriter check for too many documents does not always work, resulting in going over the limit. Once this happens, Lucene refuses to open the index and throws a CorruptIndexException: Too many documents.

      This appears to affect all versions of Lucene/Solr (the check was first implemented in LUCENE-5843 in v4.9.1/4.10 and we've seen this manifest in 4.10)

        Attachments

        1. YCS_IndexTest7a.java
          11 kB
          Yonik Seeley
        2. LUCENE-8043.patch
          10 kB
          Yonik Seeley
        3. LUCENE-8043.patch
          7 kB
          Simon Willnauer
        4. LUCENE-8043.patch
          8 kB
          Simon Willnauer
        5. LUCENE-8043.patch
          14 kB
          Simon Willnauer
        6. LUCENE-8043.patch
          19 kB
          Simon Willnauer

          Activity

            People

            • Assignee:
              simonw Simon Willnauer
              Reporter:
              yseeley@gmail.com Yonik Seeley
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: