diff options
author | Sanika Phanse <sanika.phanse@mongodb.com> | 2022-04-12 20:12:19 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-04-13 00:40:10 +0000 |
commit | 76064b416bd019de86ef212b18b1597ceab5c2f5 (patch) | |
tree | 546c9fbe285b4ea568671ec9c4053a7e2cf82467 /jstests/concurrency | |
parent | c106139f4d890a0d6e773570f813debf86b7031f (diff) | |
download | mongo-76064b416bd019de86ef212b18b1597ceab5c2f5.tar.gz |
SERVER-65398 Remove featureFlagUpdateDocumentShardKeyUsingTransactionApi tag for tests
Diffstat (limited to 'jstests/concurrency')
-rw-r--r-- | jstests/concurrency/fsm_workloads/random_moveChunk_update_shard_key.js | 14 | ||||
-rw-r--r-- | jstests/concurrency/fsm_workloads/random_moveChunk_update_shard_key_kill_sessions.js | 1 |
2 files changed, 7 insertions, 8 deletions
diff --git a/jstests/concurrency/fsm_workloads/random_moveChunk_update_shard_key.js b/jstests/concurrency/fsm_workloads/random_moveChunk_update_shard_key.js index 978ba970da4..c0156f96c95 100644 --- a/jstests/concurrency/fsm_workloads/random_moveChunk_update_shard_key.js +++ b/jstests/concurrency/fsm_workloads/random_moveChunk_update_shard_key.js @@ -8,7 +8,6 @@ * requires_sharding, * assumes_balancer_off, * uses_transactions, - * featureFlagUpdateDocumentShardKeyUsingTransactionApi, * ] */ load('jstests/concurrency/fsm_libs/extend_workload.js'); @@ -244,7 +243,7 @@ var $config = extendWorkload($config, function($config, $super) { // With internal transactions enabled, IncompleteTransactionHistory means the // write succeeded, so we can treat this error as success. - if (this.internalTransactionsEnabled) { + if (this.updateDocumentShardKeyUsingTransactionApiEnabled) { print("Internal transactions are on so assuming the operation succeeded"); assertDocWasUpdated( collection, idToUpdate, currentShardKey, newShardKey, counterForId + 1); @@ -322,7 +321,7 @@ var $config = extendWorkload($config, function($config, $super) { // With internal transactions enabled, IncompleteTransactionHistory means the // write succeeded, so we can treat this error as success. - if (this.internalTransactionsEnabled) { + if (this.updateDocumentShardKeyUsingTransactionApiEnabled) { print("Internal transactions are on so assuming the operation succeeded"); assertDocWasUpdated( collection, idToUpdate, currentShardKey, newShardKey, counterForId + 1); @@ -439,7 +438,7 @@ var $config = extendWorkload($config, function($config, $super) { // consistency, so use a non causally consistent session with internal transactions. const shouldUseCausalConsistency = (this.runningWithStepdowns || this.retryOnKilledSession) && - !this.internalTransactionsEnabled; + !this.updateDocumentShardKeyUsingTransactionApiEnabled; this.session = db.getMongo().startSession( {causalConsistency: shouldUseCausalConsistency, retryWrites: true}); @@ -485,13 +484,14 @@ var $config = extendWorkload($config, function($config, $super) { {getParameter: 1, featureFlagUpdateDocumentShardKeyUsingTransactionApi: 1}); if (!parameterRes.ok) { assert.eq(parameterRes.errmsg, "no option found to get", parameterRes); - this.internalTransactionsEnabled = false; + this.updateDocumentShardKeyUsingTransactionApiEnabled = false; } else { assert.commandWorked(parameterRes); - this.internalTransactionsEnabled = + this.updateDocumentShardKeyUsingTransactionApiEnabled = parameterRes.featureFlagUpdateDocumentShardKeyUsingTransactionApi.value; } - print("Internal transactions enabled: " + this.internalTransactionsEnabled); + print("Updating document shard key using transaction api enabled: " + + this.updateDocumentShardKeyUsingTransactionApiEnabled); }; /** diff --git a/jstests/concurrency/fsm_workloads/random_moveChunk_update_shard_key_kill_sessions.js b/jstests/concurrency/fsm_workloads/random_moveChunk_update_shard_key_kill_sessions.js index f17d058e815..d4c324f8d95 100644 --- a/jstests/concurrency/fsm_workloads/random_moveChunk_update_shard_key_kill_sessions.js +++ b/jstests/concurrency/fsm_workloads/random_moveChunk_update_shard_key_kill_sessions.js @@ -9,7 +9,6 @@ * requires_sharding, * assumes_balancer_off, * uses_transactions, - * featureFlagUpdateDocumentShardKeyUsingTransactionApi, * ] */ load('jstests/concurrency/fsm_libs/extend_workload.js'); |