summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Shchatko <mikhail.shchatko@mongodb.com>2021-11-04 17:49:17 +0300
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-11-09 08:11:31 +0000
commita5e673d32c8d5cf6a7c327413aa81dd16397aa26 (patch)
tree96f06ff8d16720193bbe9fdf4f75d5a0b6a85c21
parent0f581fc9651c3cc38bff3c015ab8fbbef3bfb839 (diff)
downloadmongo-a5e673d32c8d5cf6a7c327413aa81dd16397aa26.tar.gz
SERVER-61238 Don't overwrite hook logger in TenantMigrationThread
(cherry picked from commit 1384eee3fa37888fed9a5ef7df74bf9db9f116b1)
-rw-r--r--buildscripts/resmokelib/testing/hooks/tenant_migration.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/buildscripts/resmokelib/testing/hooks/tenant_migration.py b/buildscripts/resmokelib/testing/hooks/tenant_migration.py
index 8cb96cc9559..330245c46c2 100644
--- a/buildscripts/resmokelib/testing/hooks/tenant_migration.py
+++ b/buildscripts/resmokelib/testing/hooks/tenant_migration.py
@@ -61,7 +61,7 @@ class ContinuousTenantMigration(interface.Hook): # pylint: disable=too-many-ins
def before_test(self, test, test_report):
"""Before test."""
self.logger.info("Resuming the tenant migration thread.")
- self._tenant_migration_thread.resume(test.logger)
+ self._tenant_migration_thread.resume()
def after_test(self, test, test_report):
"""After test."""
@@ -325,7 +325,7 @@ class _TenantMigrationThread(threading.Thread): # pylint: disable=too-many-inst
self.__lifecycle.stop()
self._is_stopped_evt.set()
# Unpause to allow the thread to finish.
- self.resume(self.logger)
+ self.resume()
self.join()
def pause(self):
@@ -344,9 +344,8 @@ class _TenantMigrationThread(threading.Thread): # pylint: disable=too-many-inst
" ContinuousTenantMigration, but wasn't".format(
self._tenant_migration_fixture.pids()))
- def resume(self, logger):
+ def resume(self):
"""Resume the thread before test."""
- self.logger = logger
self.__lifecycle.mark_test_started()
def _wait(self, timeout):