Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-47182

Single-phase index builds should run synchronously on secondaries

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Execution Team 2020-06-15
    • 10

      We can't remove single-phase index builds entirely, but we should consider forcing single-phase builds to run synchronously with oplog batch application. This enables them to stop using ghost timestamps. Single phase builds are only used for empty collections, and to rebuild indexes admin.system collections (see SERVER-47439).
      Original description:

      Use two-phase index builds by default. Evaluate and remove logic, where possible, that depends on IndexBuildProtocol::kSinglePhase, with the exception of creating indexes on empty collections.

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: