diff options
author | Charlie Swanson <charlie.swanson@mongodb.com> | 2023-04-13 19:18:38 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-04-13 21:07:13 +0000 |
commit | 695b9222c8c334a4f4b889b2a1fdd0c25589b0ad (patch) | |
tree | ea58cf547e4004c67c2635b74a92b69d26281fde /jstests/noPassthrough/telemetry/telemetry_collect_on_mongos.js | |
parent | a99cd98c0ac8aa4a55319be23fa47dc5fc8466a2 (diff) | |
download | mongo-695b9222c8c334a4f4b889b2a1fdd0c25589b0ad.tar.gz |
SERVER-75398 New query shape definition for find command
Diffstat (limited to 'jstests/noPassthrough/telemetry/telemetry_collect_on_mongos.js')
-rw-r--r-- | jstests/noPassthrough/telemetry/telemetry_collect_on_mongos.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/jstests/noPassthrough/telemetry/telemetry_collect_on_mongos.js b/jstests/noPassthrough/telemetry/telemetry_collect_on_mongos.js index 5882ab529f0..1a68a7d43e3 100644 --- a/jstests/noPassthrough/telemetry/telemetry_collect_on_mongos.js +++ b/jstests/noPassthrough/telemetry/telemetry_collect_on_mongos.js @@ -10,8 +10,6 @@ load('jstests/libs/telemetry_utils.js'); // Redacted literal replacement string. This may change in the future, so it's factored out. const aggRedactString = "###"; -const findRedactString = "?"; - const setup = () => { const st = new ShardingTest({ mongos: 1, @@ -75,8 +73,8 @@ const assertExpectedResults = (results, const telemetryKey = { cmdNs: {db: "test", coll: "coll"}, find: collName, - filter: {$and: [{v: {$gt: findRedactString}}, {v: {$lt: findRedactString}}]}, - batchSize: findRedactString, + filter: {$and: [{v: {$gt: "?number"}}, {v: {$lt: "?number"}}]}, + batchSize: "?number", readConcern: {level: "local", provenance: "implicitDefault"}, applicationName: "MongoDB Shell", }; @@ -208,8 +206,8 @@ const assertExpectedResults = (results, const telemetryKey = { cmdNs: {db: "test", coll: "coll"}, find: collName, - filter: {$and: [{v: {$gt: findRedactString}}, {v: {$lt: findRedactString}}]}, - batchSize: findRedactString, + filter: {$and: [{v: {$gt: "?number"}}, {v: {$lt: "?number"}}]}, + batchSize: "?number", readConcern: {level: "local", provenance: "implicitDefault"}, applicationName: "MongoDB Shell" }; |