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

Wait for shard to have a primary before doing a migration in migration_recovers_unfinished_migrations.js

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0, 7.1.0-rc0
    • Affects Version/s: 7.0.0-rc0
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v7.0
    • Sharding EMEA 2023-05-01
    • 154

      In the migration_recovers_unfinished_migrations.js test there is a stepUp and then a moveChunk is called in a parallel shell.
      If the source shard is still executing the step up process, the moveChunk command will fail with a NotWritablePrimary and won't be retried due to SERVER-74177, therefore the test will fail.

      The purpose of this ticket is to wait for the primary to reach a steady state before resuming the moveChunk command.

            Assignee:
            silvia.surroca@mongodb.com Silvia Surroca
            Reporter:
            silvia.surroca@mongodb.com Silvia Surroca
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: