diff options
author | Jamie Anderson <jamie.anderson@mongodb.com> | 2021-05-19 19:07:01 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-05-20 21:53:29 +0000 |
commit | 05ce183446d77fb96cb1162990b598048c58542f (patch) | |
tree | 539b3496028d6c2cce37b09290f5d0d9b4e4b915 | |
parent | f73a9e99f3f1b9def1087904ddc6891952e62efc (diff) | |
download | mongo-05ce183446d77fb96cb1162990b598048c58542f.tar.gz |
SERVER-56924: Make resharding_abort_command.js test case wait for reshardingFields.recipientShards to exist
(cherry picked from commit c5c6a45a79c88305c37d7b435163940fffed2cc5)
-rw-r--r-- | jstests/sharding/resharding_abort_command.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jstests/sharding/resharding_abort_command.js b/jstests/sharding/resharding_abort_command.js index 127c2db0b78..93b5673b4db 100644 --- a/jstests/sharding/resharding_abort_command.js +++ b/jstests/sharding/resharding_abort_command.js @@ -311,6 +311,10 @@ runAbortWithFailpoint( return false; } + if (coordinatorDoc.recipientShards == null) { + return false; + } + for (const shardEntry of coordinatorDoc.recipientShards) { if (shardEntry.mutableState.state !== "applying") { return false; |