summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Shteinfeld <ben.shteinfeld@mongodb.com>2023-04-17 18:51:45 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-04-17 20:58:18 +0000
commit9a19e2e778d3777f11072b3850037f8a991c9b6b (patch)
treea72f43d31814ccf4d2a82b5d81cf1f9067933d93
parenta367e6e0a308938f4f3a2a2d76c7338ae20b918e (diff)
downloadmongo-9a19e2e778d3777f11072b3850037f8a991c9b6b.tar.gz
SERVER-76057 Add 'assumes_read_concern_local' test to $_internalEqHash tests.
These tests use the explain command to assert on index bounds. As a result, we want to avoid running them in suites which set a non-local readConcern because the explain command does not allow any other readConcern.
-rw-r--r--jstests/core/query/internal_hash_eq/expr_rewrites.js6
-rw-r--r--jstests/core/query/internal_hash_eq/match_internal_eq_hash.js6
2 files changed, 10 insertions, 2 deletions
diff --git a/jstests/core/query/internal_hash_eq/expr_rewrites.js b/jstests/core/query/internal_hash_eq/expr_rewrites.js
index b95284dc9c6..f13bbb55b96 100644
--- a/jstests/core/query/internal_hash_eq/expr_rewrites.js
+++ b/jstests/core/query/internal_hash_eq/expr_rewrites.js
@@ -2,7 +2,11 @@
* Tests that $expr with equality of $toHashedIndexKey to a NumberLong results in an IXSCAN plan
* with a point bound. This is because we rewrite this structure to a $_internalEqHash expression
* and generate a tight index bound.
- * @tags: [requires_fcv_70]
+ * @tags: [
+ * # explain doesn't support read concern
+ * assumes_read_concern_unchanged,
+ * requires_fcv_70,
+ * ]
*/
(function() {
"use strict";
diff --git a/jstests/core/query/internal_hash_eq/match_internal_eq_hash.js b/jstests/core/query/internal_hash_eq/match_internal_eq_hash.js
index d5135f57587..1035b06aac4 100644
--- a/jstests/core/query/internal_hash_eq/match_internal_eq_hash.js
+++ b/jstests/core/query/internal_hash_eq/match_internal_eq_hash.js
@@ -1,6 +1,10 @@
/**
* Basic tests for the $_internalEqHash match expression.
- * @tags: [requires_fcv_70]
+ * @tags: [
+ * # explain doesn't support read concern
+ * assumes_read_concern_unchanged,
+ * requires_fcv_70,
+ * ]
*/
(function() {
"use strict";