From 2a4d8ed5bb64af081b887f17dabf298831866b1d Mon Sep 17 00:00:00 2001 From: Tess Avitabile Date: Tue, 19 Mar 2019 11:27:18 -0400 Subject: SERVER-40193 Do not propagate commit point through heartbeats when FCV=4.0 --- .../libs/override_methods/check_uuids_consistent_across_cluster.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'jstests/libs') diff --git a/jstests/libs/override_methods/check_uuids_consistent_across_cluster.js b/jstests/libs/override_methods/check_uuids_consistent_across_cluster.js index 6412b894ebd..ec9894303b4 100644 --- a/jstests/libs/override_methods/check_uuids_consistent_across_cluster.js +++ b/jstests/libs/override_methods/check_uuids_consistent_across_cluster.js @@ -47,6 +47,13 @@ ShardingTest.prototype.checkUUIDsConsistentAcrossCluster = function() { continue; } var rs = this._rs[i].test; + + // The noop writer needs to be enabled in case a sync source isn't set, so that + // awaitLastOpCommitted() is guaranteed to finish. + // TODO SERVER-40211: Stop enabling the noop writer. + rs.getPrimary().adminCommand({setParameter: 1, periodicNoopIntervalSecs: 1}); + rs.getPrimary().adminCommand({setParameter: 1, writePeriodicNoops: true}); + var keyFile = this._otherParams.keyFile; if (keyFile) { authutil.asCluster(rs.nodes, keyFile, function() { -- cgit v1.2.1