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

Attempting to add documents past limit can corrupt index

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.10, 7.0, 8.0
    • 7.1.1, 7.2, 8.0
    • core/index
    • None
    • 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. LUCENE-8043.patch
          19 kB
          Simon Willnauer
        2. LUCENE-8043.patch
          14 kB
          Simon Willnauer
        3. LUCENE-8043.patch
          8 kB
          Simon Willnauer
        4. LUCENE-8043.patch
          7 kB
          Simon Willnauer
        5. YCS_IndexTest7a.java
          11 kB
          Yonik Seeley
        6. LUCENE-8043.patch
          10 kB
          Yonik Seeley

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: