def before_suite(self, test_report): """Start the background thread.""" self._background_job = _BackgroundJob( "ValidateCollectionsInBackground") self.logger.info( "Starting the background collection validation thread.") self._background_job.start()
def before_suite(self, test_report): """Start the background thread.""" server_status = self.fixture.mongo_client().admin.command( "serverStatus") if not server_status["storageEngine"].get("supportsCheckpointCursors", False): self.logger.info( "Not enabling the background collection validation thread because '%s' storage" " engine does not support checkpoints.", server_status["storageEngine"]["name"]) return self._background_job = _BackgroundJob( "ValidateCollectionsInBackground") self.logger.info( "Starting the background collection validation thread.") self._background_job.start()
def before_suite(self, test_report): """Start the background thread.""" client = self.fixture.mongo_client() # mongos does not provide storageEngine information. And the hook # run_check_repl_dbhash_background.js will check whether the storage engine of the CSRS and # replica set shards supports snapshot reads. if not client.is_mongos: server_status = client.admin.command("serverStatus") if not server_status["storageEngine"].get("supportsSnapshotReadConcern", False): self.logger.info( "Not enabling the background check repl dbhash thread because '%s' storage" " engine doesn't support snapshot reads.", server_status["storageEngine"]["name"]) return self._background_job = _BackgroundJob("CheckReplDBHashInBackground") self.logger.info("Starting the background check repl dbhash thread.") self._background_job.start()
def before_suite(self, test_report): """Start the background thread.""" self._background_job = _BackgroundJob("RunDBCheckInBackground") self.logger.info("Starting the background check repl dbCheck thread.") self._background_job.start()
def before_suite(self, test_report): """Start the background thread.""" self._background_job = _BackgroundJob( "AggregateResourceConsumptionMetricsInBackground") self.logger.info("Starting the background aggregate metrics thread.") self._background_job.start()
def before_suite(self, test_report): """Start the background thread.""" self._background_job = _BackgroundJob("ReconfigInBackground") self.logger.info("Starting the background reconfig thread.") self._background_job.start()