summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSophie Saskin <sophie.saskin@mongodb.com>2020-01-06 21:29:36 +0000
committerevergreen <evergreen@mongodb.com>2020-01-06 21:29:36 +0000
commit6059ff2da12fdfcb8f48ebd091337c9849b2d5fa (patch)
tree852db08073b9a3380a3f117cbbf64aed4324a056
parent406017b88b94580f0547a2fd75e10496d6630db3 (diff)
downloadmongo-6059ff2da12fdfcb8f48ebd091337c9849b2d5fa.tar.gz
SERVER-45372 add requires_majority_read_concern tag to change_streams_update_lookup_shard_metadata_missing
-rw-r--r--jstests/sharding/change_streams_update_lookup_shard_metadata_missing.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/jstests/sharding/change_streams_update_lookup_shard_metadata_missing.js b/jstests/sharding/change_streams_update_lookup_shard_metadata_missing.js
index 1018ba5fab2..3b68642d9fa 100644
--- a/jstests/sharding/change_streams_update_lookup_shard_metadata_missing.js
+++ b/jstests/sharding/change_streams_update_lookup_shard_metadata_missing.js
@@ -3,11 +3,19 @@
* oplog entry whose documentKey omits the shard key.
* TODO SERVER-44598: the oplog entry will no longer omit the shard key when SERVER-44598 is fixed,
* and so this test will no longer be relevant.
- * @tags: [uses_change_streams]
+ * @tags: [uses_change_streams, requires_majority_read_concern]
*/
(function() {
"use strict";
+ load(
+ "jstests/multiVersion/libs/causal_consistency_helpers.js"); // supportsMajorityReadConcern.
+
+ if (!supportsMajorityReadConcern()) {
+ jsTestLog("Skipping test since storage engine doesn't support majority read concern.");
+ return;
+ }
+
// The UUID consistency check can hit NotMasterNoSlaveOk when it attempts to obtain a list of
// collections from the shard Primaries through mongoS at the end of this test.
TestData.skipCheckingUUIDsConsistentAcrossCluster = true;