Ensure replication batch finishes before shutdown

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 3.3.12
    • Affects Version/s: 3.3.0
    • Component/s: Replication
    • None
    • Fully Compatible
    • Repl 2016-08-29
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Much like SERVER-24933, we should ensure that our shutdown lands between apply batches.

      There are a few ways to get there:

      1. Ignore shutdown interruptions during apply batch (not good for long running applies like index builds)
      2. Have shutdown wait for the current apply batch (similar to above)
      3. Undo/reset current batch work on shutdown to be in a consistent state

      In addition we should move setting the minvalid boundaries under the PBWM lock so that minvalid reflects the completed apply batch.

              Assignee:
              Mathias Stearn
              Reporter:
              Scott Hernandez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: