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

Make resharding_abort_command.js test case wait for reshardingFields.recipientShards to exist

    • Fully Compatible
    • v5.0
    • Sharding 2021-05-31
    • 149
    • 1

      Currently, the test expects the recipients to get to steady-state before the abort command is sent. However, it is possible the coordinator document can exist before the reshardingFields.recipientShards have been added when the coordinator transitions to kPreparingToDonate. Thus, the executeAtStartOfReshardingFn in the test case may return early - causing unintended behavior.

      A potential fix would be to return false if the coordinator exists but the coordinatorDoc.recipientShards do not before attempting to check each recipient shard is in steady-state.

            Assignee:
            jamie.anderson@mongodb.com Jamie Anderson
            Reporter:
            haley.connelly@mongodb.com Haley Connelly
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: