diff options
author | Davis Haupt <davis.haupt@mongodb.com> | 2023-05-09 16:21:45 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-05-09 20:50:26 +0000 |
commit | b6eab7e7d83b10cef5c57f781c1751b465aade9f (patch) | |
tree | 73eb4abb778f4579ed98a012a9d201be6b27965e /jstests/noPassthrough/telemetry/telemetry_collect_on_mongos.js | |
parent | 32f706d8604e3045324584e6191f220df96d896d (diff) | |
download | mongo-b6eab7e7d83b10cef5c57f781c1751b465aade9f.tar.gz |
SERVER-75512 key telemetry store on hash rather than BSONObj
Diffstat (limited to 'jstests/noPassthrough/telemetry/telemetry_collect_on_mongos.js')
-rw-r--r-- | jstests/noPassthrough/telemetry/telemetry_collect_on_mongos.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/jstests/noPassthrough/telemetry/telemetry_collect_on_mongos.js b/jstests/noPassthrough/telemetry/telemetry_collect_on_mongos.js index 69a6b79ba18..cdfb2da4df0 100644 --- a/jstests/noPassthrough/telemetry/telemetry_collect_on_mongos.js +++ b/jstests/noPassthrough/telemetry/telemetry_collect_on_mongos.js @@ -86,7 +86,7 @@ const assertExpectedResults = (results, // Since the cursor hasn't been exhausted yet, ensure no telemetry results have been written // yet. let telemetry = getTelemetry(db); - assert.eq(0, telemetry.length); + assert.eq(0, telemetry.length, telemetry); // Run a getMore to exhaust the cursor, then ensure telemetry results have been written // accurately. batchSize must be 2 so the cursor recognizes exhaustion. @@ -97,7 +97,7 @@ const assertExpectedResults = (results, })); // returns 1 doc, exhausts the cursor // The $telemetry query for the previous `getTelemetry` is included in this call to $telemetry. telemetry = getTelemetry(db); - assert.eq(2, telemetry.length); + assert.eq(2, telemetry.length, telemetry); assertExpectedResults(telemetry[0], telemetryKey, /* expectedExecCount */ 1, @@ -112,7 +112,7 @@ const assertExpectedResults = (results, coll.find({v: {$gt: 0, $lt: 1}}).batchSize(10).toArray(); // returns 0 docs coll.find({v: {$gt: 0, $lt: 2}}).batchSize(10).toArray(); // return 1 doc telemetry = getTelemetry(db); - assert.eq(2, telemetry.length); + assert.eq(2, telemetry.length, telemetry); assertExpectedResults(telemetry[0], telemetryKey, /* expectedExecCount */ 4, @@ -150,7 +150,7 @@ const assertExpectedResults = (results, // Since the cursor hasn't been exhausted yet, ensure no telemetry results have been written // yet. let telemetry = getTelemetry(db); - assert.eq(0, telemetry.length); + assert.eq(0, telemetry.length, telemetry); // Run a getMore to exhaust the cursor, then ensure telemetry results have been written // accurately. batchSize must be 2 so the cursor recognizes exhaustion. @@ -161,7 +161,7 @@ const assertExpectedResults = (results, })); // returns 1 doc, exhausts the cursor // The $telemetry query for the previous `getTelemetry` is included in this call to $telemetry. telemetry = getTelemetry(db); - assert.eq(2, telemetry.length); + assert.eq(2, telemetry.length, telemetry); assertExpectedResults(telemetry[0], telemetryKey, /* expectedExecCount */ 1, @@ -185,7 +185,7 @@ const assertExpectedResults = (results, {$project: {hello: "$galaxy"}}, ]); // returns 1 doc telemetry = getTelemetry(db); - assert.eq(2, telemetry.length); + assert.eq(2, telemetry.length, telemetry); assertExpectedResults(telemetry[0], telemetryKey, /* expectedExecCount */ 4, |