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 17:24:37 +0000 |
commit | c5c6a45a79c88305c37d7b435163940fffed2cc5 (patch) | |
tree | 3bd4d8c5709fb6605931fccf51bfb32ff6c3b2a6 /jstests/sharding/resharding_abort_command.js | |
parent | b9d0f29acb548cf05cf194a78d5d0516b5ae34fc (diff) | |
download | mongo-c5c6a45a79c88305c37d7b435163940fffed2cc5.tar.gz |
SERVER-56924: Make resharding_abort_command.js test case wait for reshardingFields.recipientShards to exist
Diffstat (limited to 'jstests/sharding/resharding_abort_command.js')
-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; |