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

IndexBuildsCoordinator::_startIndexBuildForRecovery() needs to set the build protocol on the index build setup options

    • Fully Compatible
    • ALL
    • v4.4
    • Execution Team 2020-05-18
    • 20

      The _startIndexBuildForRecovery() function does not set the index build protocol appropriately here.

      Consequences can arise because of this issue, namely with rollback as we've seen in a build failure.

      • Start an index build via _startIndexBuildForRecovery (originally a two-phase index build, but the protocol is set to kSinglePhase as that's the default value).
      • Abort the index build due to rollback.
      • Rollback will rebuild any required indexes, in this case, it builds our index above using the single-phase protocol, which is incorrect.

            Assignee:
            gregory.wlodarek@mongodb.com Gregory Wlodarek
            Reporter:
            gregory.wlodarek@mongodb.com Gregory Wlodarek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: