summaryrefslogtreecommitdiff
path: root/jstests/replsets
diff options
context:
space:
mode:
authorMatthew Russotto <matthew.russotto@mongodb.com>2022-11-04 14:16:39 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-11-07 17:36:34 +0000
commit8ec9c42faaa3a5f85230ff20f9827d0f6c4d8ff5 (patch)
tree15bf69e4bf0605fffd39fe04740752de0c5b6d1b /jstests/replsets
parentbb5aca605f73cc6842a9dc0a30bca07f185f6931 (diff)
downloadmongo-8ec9c42faaa3a5f85230ff20f9827d0f6c4d8ff5.tar.gz
SERVER-71094 Increase log level for 'Voted yes in election' to (debug) 1
Diffstat (limited to 'jstests/replsets')
-rw-r--r--jstests/replsets/sync_source_selection_ignores_minvalid_after_rollback.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/jstests/replsets/sync_source_selection_ignores_minvalid_after_rollback.js b/jstests/replsets/sync_source_selection_ignores_minvalid_after_rollback.js
index ee7c23b0db0..e4ab88ed90d 100644
--- a/jstests/replsets/sync_source_selection_ignores_minvalid_after_rollback.js
+++ b/jstests/replsets/sync_source_selection_ignores_minvalid_after_rollback.js
@@ -64,6 +64,9 @@ assert.commandWorked(node1.adminCommand({clearLog: 'global'}));
jsTestLog("Stepping up node 2");
+// Make sure id:5972100 debug log is enabled.
+setLogVerbosity([node1], {"replication": {"verbosity": 1}});
+
// Node 2 runs for election. This is needed before node 1 steps up because otherwise it will always
// lose future elections and will not be considered the proper branch of history.
const electionShell = startParallelShell(() => {
@@ -126,4 +129,4 @@ assert.eq(node2Coll.find({_id: "proper branch of history"}).itcount(), 1);
assert.eq(node2Coll.find({_id: "diverging point"}).itcount(), 0);
rst.stopSet();
-})(); \ No newline at end of file
+})();