diff options
author | Alex Taskov <alex.taskov@mongodb.com> | 2019-10-07 20:38:48 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-10-07 20:38:48 +0000 |
commit | 20e79fa97137b1d7afb64e451a3ba7840ab05920 (patch) | |
tree | 3cc07dc1abd799dd1dd61fd66a128fae8ec8a814 /buildscripts | |
parent | f7bb498a2544a9b513d6d361c0f6950520d82846 (diff) | |
download | mongo-20e79fa97137b1d7afb64e451a3ba7840ab05920.tar.gz |
SERVER-42866 Trigger a logical session cache refresh on all shards in the ShardedCluster test fixture before running test
(cherry picked from commit 108425fdd063a0c7dae50b2d48d3dadea35a0557)
Diffstat (limited to 'buildscripts')
-rw-r--r-- | buildscripts/resmokelib/testing/fixtures/shardedcluster.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/buildscripts/resmokelib/testing/fixtures/shardedcluster.py b/buildscripts/resmokelib/testing/fixtures/shardedcluster.py index b3b744095ef..f2a6814b171 100644 --- a/buildscripts/resmokelib/testing/fixtures/shardedcluster.py +++ b/buildscripts/resmokelib/testing/fixtures/shardedcluster.py @@ -140,6 +140,11 @@ class ShardedClusterFixture(interface.Fixture): # pylint: disable=too-many-inst primary = self.configsvr.get_primary().mongo_client() primary.admin.command({"refreshLogicalSessionCacheNow": 1}) + for shard in self.shards: + primary = (shard.mongo_client() if self.num_rs_nodes_per_shard is None else + shard.get_primary().mongo_client()) + primary.admin.command({"refreshLogicalSessionCacheNow": 1}) + def _auth_to_db(self, client): """Authenticate client for the 'authenticationDatabase'.""" if self.auth_options is not None: |