0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

SERVER-56924: Make resharding_abort_command.js test case wait for reshardingFields.recipientShards to exist

This commit is contained in:
Jamie Anderson 2021-05-19 19:07:01 +00:00 committed by Evergreen Agent
parent b9d0f29acb
commit c5c6a45a79

View File

@ -311,6 +311,10 @@ runAbortWithFailpoint(
return false; return false;
} }
if (coordinatorDoc.recipientShards == null) {
return false;
}
for (const shardEntry of coordinatorDoc.recipientShards) { for (const shardEntry of coordinatorDoc.recipientShards) {
if (shardEntry.mutableState.state !== "applying") { if (shardEntry.mutableState.state !== "applying") {
return false; return false;