summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/column_store_index_load.js
diff options
context:
space:
mode:
authorShin Yee Tan <shinyee.tan@mongodb.com>2023-01-05 22:11:05 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-01-06 00:01:26 +0000
commit6a207b53b6fe7f1ae48d4957516672f3e34ab33e (patch)
tree97d60be3c3ef98ac1e687061152262c6156f5213 /jstests/noPassthrough/column_store_index_load.js
parentee5f1277102a3e960815caaa2553b8acbed636a5 (diff)
downloadmongo-6a207b53b6fe7f1ae48d4957516672f3e34ab33e.tar.gz
SERVER-72328 Move memUsage to sorter stats
Diffstat (limited to 'jstests/noPassthrough/column_store_index_load.js')
-rw-r--r--jstests/noPassthrough/column_store_index_load.js16
1 files changed, 13 insertions, 3 deletions
diff --git a/jstests/noPassthrough/column_store_index_load.js b/jstests/noPassthrough/column_store_index_load.js
index d715c6ced92..d97fd207c11 100644
--- a/jstests/noPassthrough/column_store_index_load.js
+++ b/jstests/noPassthrough/column_store_index_load.js
@@ -151,7 +151,12 @@ assert.between(0.8 * approxMemoryUsage,
indexBulkBuilderSection.bytesSorted,
approxMemoryUsage,
tojson(indexBulkBuilderSection));
-assert.eq(Object.keys(indexBulkBuilderSection).length, 9, tojson(indexBulkBuilderSection));
+assert.between(0,
+ indexBulkBuilderSection.memUsage,
+ approxMemoryUsage,
+ tojson(indexBulkBuilderSection),
+ /*inclusive=*/true);
+assert.eq(Object.keys(indexBulkBuilderSection).length, 10, tojson(indexBulkBuilderSection));
// Perform the external bulk load. The server config won't allow a memory limit lower than 50MB, so
// we use a failpoint to set it lower than that for the purposes of this test.
@@ -176,13 +181,13 @@ assert.between(expectedSpilledRanges - 1,
indexBulkBuilderSection.spilledRanges,
expectedSpilledRanges + 1,
tojson(indexBulkBuilderSection),
- true);
+ /*inclusive=*/true);
// We can only approximate the memory usage and bytes that will be spilled.
assert.between(0,
indexBulkBuilderSection.bytesSpilled,
approxMemoryUsage,
tojson(indexBulkBuilderSection),
- true);
+ /*inclusive=*/true);
assert.gte(indexBulkBuilderSection.bytesSpilledUncompressed,
indexBulkBuilderSection.bytesSpilled,
tojson(indexBulkBuilderSection));
@@ -193,6 +198,11 @@ assert.between(approxMemoryUsage * 0.8 * 2,
indexBulkBuilderSection.bytesSorted,
approxMemoryUsage * 2,
tojson(indexBulkBuilderSection));
+assert.between(0,
+ indexBulkBuilderSection.memUsage,
+ approxMemoryUsage,
+ tojson(indexBulkBuilderSection),
+ /*inclusive=*/true);
// Perfom the online load.
onlineLoadColl.drop();