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

ReshardingCoordinator::installCoordinatorDoc should update in memory state before calling logChange

    • Fully Compatible
    • ALL
    • v5.1, v5.0
    • Sharding 2021-10-18
    • 21
    • 1

      logChange will eventually call shard::runCommand, which has checks if operation context was interrupted. This is problematic because installCoordinatorDoc is usually used in conjunction with a corresponding write to update coordinate state. And if it gets interrupted while calling logChange, the in-memory state will remain in the pre-update state and will incorrectly retry ops if inside a WithAutomaticRetry.

            Assignee:
            luis.osta@mongodb.com Luis Osta (Inactive)
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: