summaryrefslogtreecommitdiff
path: root/jstests/serverless/shard_split_startup_recovery_initially_aborted.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/serverless/shard_split_startup_recovery_initially_aborted.js')
-rw-r--r--jstests/serverless/shard_split_startup_recovery_initially_aborted.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/jstests/serverless/shard_split_startup_recovery_initially_aborted.js b/jstests/serverless/shard_split_startup_recovery_initially_aborted.js
index f6301fa7f9a..faf0245b41a 100644
--- a/jstests/serverless/shard_split_startup_recovery_initially_aborted.js
+++ b/jstests/serverless/shard_split_startup_recovery_initially_aborted.js
@@ -1,7 +1,9 @@
/**
- * Starts a shard split througt `abortShardSplit` and assert that no tenant access blockers are
+ * Starts a shard split through `abortShardSplit` and assert that no tenant access blockers are
* recovered since we do not recover access blockers for aborted split marked garbage collectable.
- * @tags: [requires_fcv_52, featureFlagShardSplit]
+ * Also verifies the serverless operation lock is not acquired when starting a split in aborted
+ * state.
+ * @tags: [requires_fcv_62, featureFlagShardSplit]
*/
load("jstests/libs/fail_point_util.js"); // for "configureFailPoint"
@@ -9,6 +11,8 @@ load('jstests/libs/parallel_shell_helpers.js'); // for "startPa
load("jstests/noPassthrough/libs/server_parameter_helpers.js"); // for "setParameter"
load("jstests/serverless/libs/basic_serverless_test.js");
load("jstests/replsets/libs/tenant_migration_test.js");
+load("jstests/replsets/libs/tenant_migration_util.js");
+const {ServerlessLockType, getServerlessOperationLock} = TenantMigrationUtil;
(function() {
"use strict";
@@ -59,5 +63,8 @@ tenantIds.every(tenantId => {
{node: donorPrimary, tenantId: tenantId}));
});
+// We do not acquire the lock for document marked for garbage collection
+assert.eq(getServerlessOperationLock(donorPrimary), ServerlessLockType.None);
+
test.stop();
})();