summaryrefslogtreecommitdiff
path: root/jstests/replsets
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2021-11-18 17:16:41 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-11-18 19:24:27 +0000
commit5f8a8c70d017bb424748a49ca31df01b2309e000 (patch)
tree30199eb15030a0ccc7940552ad5027b360187378 /jstests/replsets
parentb1c3be9ee85cc69314aa9eb78c7183f871465bcf (diff)
downloadmongo-5f8a8c70d017bb424748a49ca31df01b2309e000.tar.gz
SERVER-61532 Expose opcounters to detect constraint violations
Diffstat (limited to 'jstests/replsets')
-rw-r--r--jstests/replsets/opcounters_repl.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/jstests/replsets/opcounters_repl.js b/jstests/replsets/opcounters_repl.js
index 7ba6d802b89..ec870ee71e6 100644
--- a/jstests/replsets/opcounters_repl.js
+++ b/jstests/replsets/opcounters_repl.js
@@ -42,6 +42,10 @@ function getOpCountersDiff(cmdFn) {
const primaryOpCountersAfter = getOpCounters(primary);
const secondaryOpCountersReplAfter = getOpCountersRepl(secondary);
+ assert(!primaryOpCountersAfter.hasOwnProperty("constraintsRelaxed"), primaryOpCountersAfter);
+ assert(!secondaryOpCountersReplAfter.hasOwnProperty("constraintsRelaxed"),
+ secondaryOpCountersReplAfter);
+
// Calculate the diff
let primaryDiff = {};
let secondaryDiff = {};