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

Prevent Resharding Coordinator StepDownStepUpEachTransition test race between stepdown and done

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.4, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • v5.0
    • Sharding 2021-09-20
    • 29
    • 1

      If the coordinator finishes transitioning to done before stepdown, the completion promise will be fulfilled with Status::OK instead of InterruptedDueToReplStateChange and cause this assert to fail.

      kDone is different than the other state transitions since the coordinator doesn't actually persist its state of kDone to the ReshardingCoordinatorDocument on disk. Instead, if the in-memory state indicates kDone, the coordinator deletes the document altogether

      Potential fix: remove kDone from the state guarded transitions and potentially add a new test case with an alternative approach if we want the test coverage.

            Assignee:
            luis.osta@mongodb.com Luis Osta (Inactive)
            Reporter:
            haley.connelly@mongodb.com Haley Connelly
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: