From 24a6f7e76edb656a009460051e031cf363394c1a Mon Sep 17 00:00:00 2001 From: Pavi Vetriselvan Date: Wed, 16 Jun 2021 09:34:50 -0400 Subject: SERVER-57261 Enable tenant migration kill primary passthrough with commits (cherry picked from commit c386b7c17e2f642607c4c45bbd32a431d8d12406) --- .../tenant_migration_kill_primary_jscore_passthrough.yml | 14 +++++++++----- 1 file 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: -- cgit v1.2.1