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

Prevent Resharding Coordinator StepDownStepUpEachTransition test race between stepdown and done

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 5.0.4, 5.1.0-rc0
    • Sharding
    • None
    • Fully Compatible
    • v5.0
    • Sharding 2021-09-20
    • 29
    • 1

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: