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

XMLWordPrintableJSON

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

      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 (Inactive)
              Reporter:
              Randolph Tan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: