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

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

    • Sharding NYC
    • Fully Compatible
    • ALL
    • v7.0, v6.3, v6.0, v5.0, v4.4
    • Sharding EMEA 2023-04-17
    • 26

      In the prepare_transaction_then_migrate.js test there is a stepUp and then a migration in a parallel shell which is expected to hang in a point in the migration. However, if the source shard is still executing the step up process then the migration will fail with a NotWritablePrimary error, causing the test to time out waiting for a migration to get into a point that will never reach.

      We could either retry the moveChunk command or find a way to wait for the primary to reach a steady state.

            silvia.surroca@mongodb.com Silvia Surroca
            marcos.grillo@mongodb.com Marcos José Grillo Ramirez
            0 Vote for this issue
            2 Start watching this issue