summaryrefslogtreecommitdiff
path: root/jstests/sharding/timeseries_multiple_mongos.js
diff options
context:
space:
mode:
authorLucas de Castro Borges <lucas@gnuabordo.com.br>2025-02-11 15:07:35 -0300
committerLucas de Castro Borges <lucas@gnuabordo.com.br>2025-02-11 15:07:35 -0300
commit4cb8841196d0625dfa3825aa326f071cd27c7b8b (patch)
tree1682a647d4463397c119183369ae6f750d5fdcff /jstests/sharding/timeseries_multiple_mongos.js
parentaa03c6362cbaa767638e6eed9b031d86dd2643d1 (diff)
parent8f0827553e09872941945a093b647a4211a9db7f (diff)
Update upstream source from tag 'upstream/6.0.0'master
Update to upstream version '6.0.0' with Debian dir 5604a80ec1c96ca76f25f40d78e6ef855abec322
Diffstat (limited to 'jstests/sharding/timeseries_multiple_mongos.js')
-rw-r--r--jstests/sharding/timeseries_multiple_mongos.js50
1 files changed, 50 insertions, 0 deletions
diff --git a/jstests/sharding/timeseries_multiple_mongos.js b/jstests/sharding/timeseries_multiple_mongos.js
index 6b6aee4987c..dbf88f6fa56 100644
--- a/jstests/sharding/timeseries_multiple_mongos.js
+++ b/jstests/sharding/timeseries_multiple_mongos.js
@@ -298,6 +298,19 @@ if (TimeseriesTest.timeseriesUpdatesAndDeletesEnabled(st.shard0) &&
cmdObj: {
update: collName,
updates: [{
+ q: {},
+ u: {$inc: {[metaField + ".b"]: 1}},
+ multi: true,
+ }]
+ },
+ numProfilerEntries: {sharded: 2, unsharded: 1},
+ });
+
+ runTest({
+ shardKey: {[metaField + ".a"]: 1},
+ cmdObj: {
+ update: collName,
+ updates: [{
q: {[metaField + ".a"]: 1},
u: {$inc: {[metaField + ".b"]: -1}},
multi: true,
@@ -311,6 +324,19 @@ if (TimeseriesTest.timeseriesUpdatesAndDeletesEnabled(st.shard0) &&
cmdObj: {
update: bucketsCollName,
updates: [{
+ q: {},
+ u: {$inc: {["meta.b"]: 1}},
+ multi: true,
+ }]
+ },
+ numProfilerEntries: {sharded: 2, unsharded: 1},
+ });
+
+ runTest({
+ shardKey: {[metaField + ".a"]: 1},
+ cmdObj: {
+ update: bucketsCollName,
+ updates: [{
q: {["meta.a"]: 1},
u: {$inc: {["meta.b"]: -1}},
multi: true,
@@ -325,6 +351,18 @@ if (TimeseriesTest.timeseriesUpdatesAndDeletesEnabled(st.shard0) &&
cmdObj: {
delete: collName,
deletes: [{
+ q: {},
+ limit: 0,
+ }],
+ },
+ numProfilerEntries: {sharded: 2, unsharded: 1},
+ });
+
+ runTest({
+ shardKey: {[metaField]: 1},
+ cmdObj: {
+ delete: collName,
+ deletes: [{
q: {[metaField]: 0},
limit: 0,
}],
@@ -337,6 +375,18 @@ if (TimeseriesTest.timeseriesUpdatesAndDeletesEnabled(st.shard0) &&
cmdObj: {
delete: bucketsCollName,
deletes: [{
+ q: {},
+ limit: 0,
+ }],
+ },
+ numProfilerEntries: {sharded: 2, unsharded: 1},
+ });
+
+ runTest({
+ shardKey: {[metaField]: 1},
+ cmdObj: {
+ delete: bucketsCollName,
+ deletes: [{
q: {meta: 0},
limit: 0,
}],