Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.8.1, 4.9, 6.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      When I was comparing performance of different UUIDs, I noticed that TMP was merging too soon and picking non-ideal merges as a result. The fix is silly:

      Index: lucene/core/src/java/org/apache/lucene/index/TieredMergePolicy.java
      ===================================================================
      — lucene/core/src/java/org/apache/lucene/index/TieredMergePolicy.java (revision 1593975)
      +++ lucene/core/src/java/org/apache/lucene/index/TieredMergePolicy.java (working copy)
      @@ -361,7 +361,7 @@
      return spec;
      }

      • if (eligible.size() >= allowedSegCountInt) {
        + if (eligible.size() > allowedSegCountInt) {

      // OK we are over budget – find best merge!
      MergeScore bestScore = null;

        Attachments

          Activity

            People

            • Assignee:
              mikemccand Michael McCandless
              Reporter:
              mikemccand Michael McCandless
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: