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

TieredMergePolicy's handling of the case that all segments are less than the floor segment size is fragile

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 7.5, 8.0
    • None
    • None
    • New

    Description

      In the case that the index size is less than the floor segment size, the allowed number of segments is always computed as 1. In practice, it doesn't keep merging indefinitely only because doFindMerges has some logic that skips merging if the number of candidates is less than maxMergeAtOnce. This looks a bit fragile to me.

      Attachments

        1. LUCENE-8394.patch
          0.8 kB
          Adrien Grand

        Activity

          People

            Unassigned Unassigned
            jpountz Adrien Grand
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: