summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
authorPavi Vetriselvan <pavithra.vetriselvan@mongodb.com>2021-05-20 18:34:00 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-05-25 14:37:02 +0000
commitfffcdd7eba68147c7f0cdfd5fccbccb72e440bea (patch)
tree19c2afb59b1dc9ccf450eb22dd4065baff97a765 /buildscripts
parentde1fa178269c8cc55ad2012a786074c1d32109a9 (diff)
downloadmongo-fffcdd7eba68147c7f0cdfd5fccbccb72e440bea.tar.gz
SERVER-57089 Add skip_dbhash flag to ContinuousTenantMigration
Diffstat (limited to 'buildscripts')
-rw-r--r--buildscripts/resmokeconfig/suites/tenant_migration_kill_primary_jscore_passthrough.yml1
-rw-r--r--buildscripts/resmokeconfig/suites/tenant_migration_stepdown_jscore_passthrough.yml1
-rw-r--r--buildscripts/resmokeconfig/suites/tenant_migration_terminate_primary_jscore_passthrough.yml1
-rw-r--r--buildscripts/resmokelib/testing/hooks/tenant_migration.py7
4 files changed, 9 insertions, 1 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 c0e183bfb32..aaabc652193 100644
--- a/buildscripts/resmokeconfig/suites/tenant_migration_kill_primary_jscore_passthrough.yml
+++ b/buildscripts/resmokeconfig/suites/tenant_migration_kill_primary_jscore_passthrough.yml
@@ -253,6 +253,7 @@ executor:
readPreference:
mode: "primary"
retryWrites: true
+ skipTenantMigrationDBHash: false
# We specify nodb so the shell used by each test will attempt to connect after loading the
# retry logic in auto_retry_on_network_error.js.
nodb: ""
diff --git a/buildscripts/resmokeconfig/suites/tenant_migration_stepdown_jscore_passthrough.yml b/buildscripts/resmokeconfig/suites/tenant_migration_stepdown_jscore_passthrough.yml
index 6d7d6381375..b6929676ec9 100644
--- a/buildscripts/resmokeconfig/suites/tenant_migration_stepdown_jscore_passthrough.yml
+++ b/buildscripts/resmokeconfig/suites/tenant_migration_stepdown_jscore_passthrough.yml
@@ -249,6 +249,7 @@ executor:
readPreference:
mode: "primary"
retryWrites: true
+ skipTenantMigrationDBHash: false
# We specify nodb so the shell used by each test will attempt to connect after loading the
# retry logic in auto_retry_on_network_error.js.
nodb: ""
diff --git a/buildscripts/resmokeconfig/suites/tenant_migration_terminate_primary_jscore_passthrough.yml b/buildscripts/resmokeconfig/suites/tenant_migration_terminate_primary_jscore_passthrough.yml
index 0403441f094..e5df514ae16 100644
--- a/buildscripts/resmokeconfig/suites/tenant_migration_terminate_primary_jscore_passthrough.yml
+++ b/buildscripts/resmokeconfig/suites/tenant_migration_terminate_primary_jscore_passthrough.yml
@@ -249,6 +249,7 @@ executor:
readPreference:
mode: "primary"
retryWrites: true
+ skipTenantMigrationDBHash: false
# We specify nodb so the shell used by each test will attempt to connect after loading the
# retry logic in auto_retry_on_network_error.js.
nodb: ""
diff --git a/buildscripts/resmokelib/testing/hooks/tenant_migration.py b/buildscripts/resmokelib/testing/hooks/tenant_migration.py
index e9e27ec6ae3..67aadba1123 100644
--- a/buildscripts/resmokelib/testing/hooks/tenant_migration.py
+++ b/buildscripts/resmokelib/testing/hooks/tenant_migration.py
@@ -242,6 +242,10 @@ class _TenantMigrationThread(threading.Thread): # pylint: disable=too-many-inst
self._auth_options = shell_options["global_vars"]["TestData"]["authOptions"]
self._test_report = test_report
self._shell_options = shell_options
+ self._skip_dbhash = False
+ if "skipTenantMigrationDBHash" in self._shell_options["global_vars"]["TestData"]:
+ self._skip_dbhash = self._shell_options["global_vars"]["TestData"][
+ "skipTenantMigrationDBHash"]
self.__lifecycle = TenantMigrationLifeCycle()
# Event set when the thread has been stopped using the 'stop()' method.
@@ -411,7 +415,8 @@ class _TenantMigrationThread(threading.Thread): # pylint: disable=too-many-inst
# in the next test.
if is_committed:
# Once we have committed a migration, run a dbhash check before rerouting commands.
- self._check_tenant_migration_dbhash(migration_opts)
+ if not self._skip_dbhash:
+ self._check_tenant_migration_dbhash(migration_opts)
# If the migration committed, to avoid routing commands incorrectly, wait for the
# donor/proxy to reroute at least one command before doing garbage collection. Stop