summaryrefslogtreecommitdiff
path: root/jstests/sharding/change_stream_update_lookup_collation.js
diff options
context:
space:
mode:
authorWilliam Schultz <william.schultz@mongodb.com>2018-12-21 16:33:36 -0500
committerWilliam Schultz <william.schultz@mongodb.com>2018-12-21 16:43:58 -0500
commit435200964a1fc9de566e74bd579e99c308551670 (patch)
treef6d4e2723f794200b900c914818c8d9645df50f0 /jstests/sharding/change_stream_update_lookup_collation.js
parentf15556ae1ba4f78d2823d54e38d7025c7e9ca4fb (diff)
downloadmongo-435200964a1fc9de566e74bd579e99c308551670.tar.gz
SERVER-37560 Allow change streams to work with speculative majority reads
This patch allows change stream queries to use speculative majority reads so that they can be used even when enableMajorityReadConcern:false. Change stream aggregation commands are allowed to use speculative majority reads as well as 'find' commands that specify a special flag. This commit also enables all change streams tests and suites on the enableMajorityReadConcern:false Evergreen variant. No optimizations for speculative majority change streams are included in this commit.
Diffstat (limited to 'jstests/sharding/change_stream_update_lookup_collation.js')
-rw-r--r--jstests/sharding/change_stream_update_lookup_collation.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/jstests/sharding/change_stream_update_lookup_collation.js b/jstests/sharding/change_stream_update_lookup_collation.js
index 6c57aba30e0..eefff9d463f 100644
--- a/jstests/sharding/change_stream_update_lookup_collation.js
+++ b/jstests/sharding/change_stream_update_lookup_collation.js
@@ -9,6 +9,14 @@
// For supportsMajorityReadConcern().
load("jstests/multiVersion/libs/causal_consistency_helpers.js");
+ // TODO (SERVER-38673): Remove this once BACKPORT-3428, BACKPORT-3429 are completed.
+ if (!jsTestOptions().enableMajorityReadConcern &&
+ jsTestOptions().mongosBinVersion === 'last-stable') {
+ jsTestLog(
+ "Skipping test since 'last-stable' mongos doesn't support speculative majority update lookup queries.");
+ return;
+ }
+
if (!supportsMajorityReadConcern()) {
jsTestLog("Skipping test since storage engine doesn't support majority read concern.");
return;