diff options
author | Mickey. J Winters <mickey.winters@mongodb.com> | 2023-04-29 01:48:19 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-04-29 02:23:45 +0000 |
commit | f0dadedbef1c68519c7b4a1b9ad5a639fe806db1 (patch) | |
tree | 7680f86e536d29237066588af38feab13a9b6172 /jstests/serverless | |
parent | 6967f66590099504ab32fec9e9f35f8b28888b52 (diff) | |
download | mongo-f0dadedbef1c68519c7b4a1b9ad5a639fe806db1.tar.gz |
SERVER-76618 Robustify shard_split_change_collections_test.js
Diffstat (limited to 'jstests/serverless')
-rw-r--r-- | jstests/serverless/shard_split_change_collections_test.js | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/jstests/serverless/shard_split_change_collections_test.js b/jstests/serverless/shard_split_change_collections_test.js index d7c647ec469..787a8bcf592 100644 --- a/jstests/serverless/shard_split_change_collections_test.js +++ b/jstests/serverless/shard_split_change_collections_test.js @@ -99,13 +99,6 @@ assert.commandFailedWithCode( operation.forget(); -// getMore cursor to check if we can getMore after the database is dropped. -donorTenantSession.getDatabase("config")["system.change_collection"].drop(); -assert.commandFailedWithCode( - donorTenantConn.getDB("database") - .runCommand("getMore", {getMore: donorCursor2._cursorid, collection: "collection"}), - ErrorCodes.QueryPlanKilled); - const recipientRst = test.getRecipient(); const recipientPrimary = recipientRst.getPrimary(); @@ -140,4 +133,12 @@ const cursors = [recipientPrimaryTenantConn, ...recipientSecondaryConns].map( }); test.cleanupSuccesfulCommitted(operation.migrationId, tenantIds); + +// getMore cursor to check if we can getMore after the database is dropped. +donorTenantSession.getDatabase("config")["system.change_collection"].drop(); +assert.commandFailedWithCode( + donorTenantConn.getDB("database") + .runCommand("getMore", {getMore: donorCursor2._cursorid, collection: "collection"}), + ErrorCodes.QueryPlanKilled); + test.stop(); |