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

Detach IndexWriter from MergePolicy

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 7.4, 8.0
    • 7.4, 8.0
    • None
    • None
    • New, Patch Available

    Description

      This change introduces a new MergePolicy.MergeContext interface
      that is easy to mock and cuts over all instances of IW to MergeContext.
      Since IW now implements MergeContext the cut over is straight forward.
      This reduces the exposed API available in MP dramatically and allows
      efficient testing without relying on IW to improve the coverage and
      testability of our MP implementations.

      Attachments

        1. LUCENE-8330.patch
          71 kB
          Simon Willnauer
        2. LUCENE-8330.patch
          70 kB
          Simon Willnauer
        3. LUCENE-8330.patch
          69 kB
          Simon Willnauer
        4. LUCENE-8330.patch
          68 kB
          Simon Willnauer

        Activity

          People

            simonw Simon Willnauer
            simonw Simon Willnauer
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: