summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Russotto <matthew.russotto@mongodb.com>2021-06-02 20:21:33 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-06-02 21:27:45 +0000
commit9f6598c1e321b88d7467547a2d0a80a92ae5a944 (patch)
tree51e8e365594a92c5591cfe4a8bcbbb8bf8bd2934
parent1e1ae49e84368b838c0f8e771a22a2cca077dc1c (diff)
downloadmongo-9f6598c1e321b88d7467547a2d0a80a92ae5a944.tar.gz
SERVER-57374 Turn on mongod command logging in sharding_rs2
-rw-r--r--jstests/sharding/sharding_rs2.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/jstests/sharding/sharding_rs2.js b/jstests/sharding/sharding_rs2.js
index 76b3f7e8f0e..6d27bc899f7 100644
--- a/jstests/sharding/sharding_rs2.js
+++ b/jstests/sharding/sharding_rs2.js
@@ -225,8 +225,12 @@ assert.eq(100, ts.count(), "E4");
assert.eq(100, ts.find().itcount(), "E5");
printjson(ts.find().batchSize(5).explain());
-// fsyncLock the secondaries
+// fsyncLock the secondaries and enable command logging on all the mongods.
+assert.commandWorked(
+ rs.getPrimary().adminCommand({setParameter: 1, logComponentVerbosity: {command: 2}}));
rs.getSecondaries().forEach(function(secondary) {
+ assert.commandWorked(
+ secondary.adminCommand({setParameter: 1, logComponentVerbosity: {command: 2}}));
assert.commandWorked(secondary.getDB("test").fsyncLock());
});