diff options
author | Gregory Noma <gregory.noma@gmail.com> | 2022-05-03 13:23:45 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-05-03 14:29:58 +0000 |
commit | 8814b14c16edcc80008930186ff93e1d0d6f271c (patch) | |
tree | 459563a424139d3389862c67274cdfb0b04ab7eb /jstests/sharding | |
parent | fe08161c8c50c5fc2ea245ca248a7a05f9c3cdc6 (diff) | |
download | mongo-8814b14c16edcc80008930186ff93e1d0d6f271c.tar.gz |
SERVER-66118 Remove `storageEngineSupportsRetryableWrites`
Diffstat (limited to 'jstests/sharding')
8 files changed, 0 insertions, 55 deletions
diff --git a/jstests/sharding/move_chunk_find_and_modify_with_write_retryability.js b/jstests/sharding/move_chunk_find_and_modify_with_write_retryability.js index 1c6cc248d7a..f8e9603f5b8 100644 --- a/jstests/sharding/move_chunk_find_and_modify_with_write_retryability.js +++ b/jstests/sharding/move_chunk_find_and_modify_with_write_retryability.js @@ -3,13 +3,6 @@ load("jstests/sharding/move_chunk_with_session_helper.js"); (function() { "use strict"; -load("jstests/libs/retryable_writes_util.js"); - -if (!RetryableWritesUtil.storageEngineSupportsRetryableWrites(jsTest.options().storageEngine)) { - jsTestLog("Retryable writes are not supported, skipping test"); - return; -} - var checkFindAndModifyResult = function(expected, toCheck) { assert.eq(expected.ok, toCheck.ok); assert.eq(expected.value, toCheck.value); diff --git a/jstests/sharding/move_chunk_insert_with_write_retryability.js b/jstests/sharding/move_chunk_insert_with_write_retryability.js index c6a79000712..b78891795f7 100644 --- a/jstests/sharding/move_chunk_insert_with_write_retryability.js +++ b/jstests/sharding/move_chunk_insert_with_write_retryability.js @@ -3,13 +3,6 @@ load("jstests/sharding/move_chunk_with_session_helper.js"); (function() { "use strict"; -load("jstests/libs/retryable_writes_util.js"); - -if (!RetryableWritesUtil.storageEngineSupportsRetryableWrites(jsTest.options().storageEngine)) { - jsTestLog("Retryable writes are not supported, skipping test"); - return; -} - // Prevent unnecessary elections in the first shard replica set. Shard 'rs1' shard will need its // secondary to get elected, so we don't give it a zero priority. var st = new ShardingTest({ diff --git a/jstests/sharding/move_chunk_remove_with_write_retryability.js b/jstests/sharding/move_chunk_remove_with_write_retryability.js index e493bea1632..1b63c2d8552 100644 --- a/jstests/sharding/move_chunk_remove_with_write_retryability.js +++ b/jstests/sharding/move_chunk_remove_with_write_retryability.js @@ -3,13 +3,6 @@ load("jstests/sharding/move_chunk_with_session_helper.js"); (function() { "use strict"; -load("jstests/libs/retryable_writes_util.js"); - -if (!RetryableWritesUtil.storageEngineSupportsRetryableWrites(jsTest.options().storageEngine)) { - jsTestLog("Retryable writes are not supported, skipping test"); - return; -} - // Prevent unnecessary elections in the first shard replica set. Shard 'rs1' shard will need its // secondary to get elected, so we don't give it a zero priority. var st = new ShardingTest({ diff --git a/jstests/sharding/move_chunk_update_shard_key_in_retryable_write.js b/jstests/sharding/move_chunk_update_shard_key_in_retryable_write.js index 8678e35a79d..a166267e5e7 100644 --- a/jstests/sharding/move_chunk_update_shard_key_in_retryable_write.js +++ b/jstests/sharding/move_chunk_update_shard_key_in_retryable_write.js @@ -12,15 +12,9 @@ "use strict"; -load("jstests/libs/retryable_writes_util.js"); load('jstests/sharding/libs/sharded_transactions_helpers.js'); load('./jstests/libs/chunk_manipulation_util.js'); -if (!RetryableWritesUtil.storageEngineSupportsRetryableWrites(jsTest.options().storageEngine)) { - jsTestLog("Retryable writes are not supported, skipping test"); - return; -} - // For startParallelOps to write its state let staticMongod = MongoRunner.runMongod({}); diff --git a/jstests/sharding/move_chunk_update_with_write_retryability.js b/jstests/sharding/move_chunk_update_with_write_retryability.js index b7d0ddae5d3..db4c0899ef2 100644 --- a/jstests/sharding/move_chunk_update_with_write_retryability.js +++ b/jstests/sharding/move_chunk_update_with_write_retryability.js @@ -3,13 +3,6 @@ load("jstests/sharding/move_chunk_with_session_helper.js"); (function() { "use strict"; -load("jstests/libs/retryable_writes_util.js"); - -if (!RetryableWritesUtil.storageEngineSupportsRetryableWrites(jsTest.options().storageEngine)) { - jsTestLog("Retryable writes are not supported, skipping test"); - return; -} - // Prevent unnecessary elections in the first shard replica set. Shard 'rs1' shard will need its // secondary to get elected, so we don't give it a zero priority. var st = new ShardingTest({ diff --git a/jstests/sharding/retryable_writes.js b/jstests/sharding/retryable_writes.js index c361052fce2..bd2ea9044e8 100644 --- a/jstests/sharding/retryable_writes.js +++ b/jstests/sharding/retryable_writes.js @@ -5,13 +5,6 @@ (function() { "use strict"; -load("jstests/libs/retryable_writes_util.js"); - -if (!RetryableWritesUtil.storageEngineSupportsRetryableWrites(jsTest.options().storageEngine)) { - jsTestLog("Retryable writes are not supported, skipping test"); - return; -} - function checkFindAndModifyResult(expected, toCheck) { assert.eq(expected.ok, toCheck.ok); assert.eq(expected.value, toCheck.value); diff --git a/jstests/sharding/session_info_in_oplog.js b/jstests/sharding/session_info_in_oplog.js index 3ad935aa3b6..df0387dde4e 100644 --- a/jstests/sharding/session_info_in_oplog.js +++ b/jstests/sharding/session_info_in_oplog.js @@ -6,13 +6,6 @@ (function() { "use strict"; -load("jstests/libs/retryable_writes_util.js"); - -if (!RetryableWritesUtil.storageEngineSupportsRetryableWrites(jsTest.options().storageEngine)) { - jsTestLog("Retryable writes are not supported, skipping test"); - return; -} - const kNodes = 2; var checkOplog = function(oplog, lsid, uid, txnNum, stmtId, prevTs, prevTerm) { diff --git a/jstests/sharding/write_transactions_during_migration.js b/jstests/sharding/write_transactions_during_migration.js index 9b043eb0f1a..fa7249711bf 100644 --- a/jstests/sharding/write_transactions_during_migration.js +++ b/jstests/sharding/write_transactions_during_migration.js @@ -15,13 +15,6 @@ load('./jstests/libs/chunk_manipulation_util.js'); (function() { "use strict"; -load("jstests/libs/retryable_writes_util.js"); - -if (!RetryableWritesUtil.storageEngineSupportsRetryableWrites(jsTest.options().storageEngine)) { - jsTestLog("Retryable writes are not supported, skipping test"); - return; -} - var staticMongod = MongoRunner.runMongod({}); // For startParallelOps. var st = new ShardingTest({shards: {rs0: {nodes: 1}, rs1: {nodes: 1}}}); |