summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamie Anderson <jamie.anderson@mongodb.com>2021-04-20 18:50:39 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-04-26 17:49:45 +0000
commit3f297279a73028f79419352ec1967d751f39e94b (patch)
tree1b7ea665a48d8290efd28ab325d72340a5e768cc
parent1b147b0d1cde0eb6cea93349454bce76091ce2d1 (diff)
downloadmongo-3f297279a73028f79419352ec1967d751f39e94b.tar.gz
SERVER-55879 Accommodate implicit collection creation in ReshardingTest's post-state assertions
(cherry picked from commit b0c83268977789b793a2b4bc385b6c47c56668c8)
-rw-r--r--jstests/sharding/libs/resharding_test_fixture.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/jstests/sharding/libs/resharding_test_fixture.js b/jstests/sharding/libs/resharding_test_fixture.js
index 580eb1bf4bb..c0f6f90c28b 100644
--- a/jstests/sharding/libs/resharding_test_fixture.js
+++ b/jstests/sharding/libs/resharding_test_fixture.js
@@ -629,10 +629,10 @@ var ReshardingTest = class {
const collInfo = donor.getCollection(this._ns).exists();
const isAlsoRecipient = this._recipientShards().includes(donor);
if (expectedErrorCode === ErrorCodes.OK && !isAlsoRecipient) {
- assert.eq(
- null,
- collInfo,
- `collection exists on ${donor.shardName} despite resharding having succeeded`);
+ // TODO SERVER-55781 Only allow collection to be null after fixing underlying bug.
+ assert(collInfo == null ||
+ !bsonBinaryEqual(this._sourceCollectionUUID, collInfo.info.uuid),
+ `collection exists on ${donor.shardName} despite resharding having succeeded`);
} else if (expectedErrorCode !== ErrorCodes.OK) {
assert.neq(
null,