summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
authorAlex Taskov <alex.taskov@mongodb.com>2019-10-07 20:30:41 +0000
committerevergreen <evergreen@mongodb.com>2019-10-07 20:30:41 +0000
commitf3e5b20012cc2c69f01e3a2ad27c87de4317647d (patch)
treeffe80678f999e39870272963cf25b1537f63171e /buildscripts
parent156b825e12aaf9d233a4cbb2bc499e259d0d2662 (diff)
downloadmongo-f3e5b20012cc2c69f01e3a2ad27c87de4317647d.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.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/buildscripts/resmokelib/testing/fixtures/shardedcluster.py b/buildscripts/resmokelib/testing/fixtures/shardedcluster.py
index 394323630bd..a014d018416 100644
--- a/buildscripts/resmokelib/testing/fixtures/shardedcluster.py
+++ b/buildscripts/resmokelib/testing/fixtures/shardedcluster.py
@@ -139,6 +139,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: