diff options
author | Pavi Vetriselvan <pavithra.vetriselvan@mongodb.com> | 2021-06-16 09:34:50 -0400 |
---|---|---|
committer | Pavi Vetriselvan <pavithra.vetriselvan@mongodb.com> | 2021-06-22 09:22:14 -0400 |
commit | 24a6f7e76edb656a009460051e031cf363394c1a (patch) | |
tree | a49c2a71e47b0266a7f6899033cf9fd05cc3d10f | |
parent | e0a994c044e9b6b952492ef95555c85f7c2ea213 (diff) | |
download | mongo-24a6f7e76edb656a009460051e031cf363394c1a.tar.gz |
SERVER-57261 Enable tenant migration kill primary passthrough with commitsr5.0.0-rc3
(cherry picked from commit c386b7c17e2f642607c4c45bbd32a431d8d12406)
-rw-r--r-- | buildscripts/resmokeconfig/suites/tenant_migration_kill_primary_jscore_passthrough.yml | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/buildscripts/resmokeconfig/suites/tenant_migration_kill_primary_jscore_passthrough.yml b/buildscripts/resmokeconfig/suites/tenant_migration_kill_primary_jscore_passthrough.yml index e19b2719760..44678661461 100644 --- a/buildscripts/resmokeconfig/suites/tenant_migration_kill_primary_jscore_passthrough.yml +++ b/buildscripts/resmokeconfig/suites/tenant_migration_kill_primary_jscore_passthrough.yml @@ -193,6 +193,12 @@ selector: - requires_getmore # fastcount can product inaccurate counts after unclean shutdowns. - requires_fastcount + # "Cowardly fail if dbStats is run with a mongod that had an unclean shutdown: ..." + - requires_dbstats + # "Cowardly fail if collStats is run with a mongod that had an unclean shutdown: ..." + - requires_collstats + # "Cowardly fail if unbounded dataSize is run with a mongod that had an unclean shutdown: ..." + - requires_datasize # Due to background tenant migrations, operations in the main test shell are not guaranteed to # be causally consistent with operations in a parallel shell. The reason is that # TenantMigrationCommitted error is only thrown when the client does a write or a atClusterTime/ @@ -229,9 +235,9 @@ executor: load('jstests/libs/override_methods/inject_tenant_prefix.js'); load("jstests/libs/override_methods/enable_sessions.js"); load("jstests/libs/override_methods/set_read_and_write_concerns.js"); + load("jstests/libs/override_methods/fail_unclean_shutdown_incompatible_commands.js"); + load("jstests/libs/override_methods/fail_unclean_shutdown_start_parallel_shell.js"); jsTest.authenticate(db.getMongo()); - // TODO SERVER-52713: Add libraries to automatically fail commands incompatible with - // unclean shutdowns. global_vars: TestData: &TestData tenantId: "tenantMigrationTenantId" @@ -289,9 +295,7 @@ executor: enableElectionHandoff: 0 failpoint.abortTenantMigrationBeforeLeavingBlockingState: mode: - # TODO (SERVER-52713): Allow tenant migration stepdown/kill/terminate suites to commit - # migrations and interrupt all replica sets. - activationProbability: 1 + activationProbability: .5 failpoint.pauseTenantMigrationBeforeLeavingBlockingState: mode: alwaysOn data: |