MoveRangeCoordinator should increment unfinishedMigrationFromPreviousPrimary earlier

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • Fully Compatible
    • ALL
    • ClusterScalability 8Jun-22June
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Previous semantics were to increment unfinishedMigrationFromPreviousPrimary after the async work to drive MigrationCoordinators from previous terms is scheduled, not when it completes. However, after SERVER-127230, the MoveRangeCoordinator only increments it after completion.

      unfinished_migration_server_status.js expects that the metric is incremented by the time the MigrationCoordinator document is removed, so we should update the MoveRangeCoordinator to match the previous semantics.

            Assignee:
            Brett Nawrocki
            Reporter:
            Brett Nawrocki
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: