summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/timeseries_insert_ordered_false.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthrough/timeseries_insert_ordered_false.js')
-rw-r--r--jstests/noPassthrough/timeseries_insert_ordered_false.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/jstests/noPassthrough/timeseries_insert_ordered_false.js b/jstests/noPassthrough/timeseries_insert_ordered_false.js
index e38147f9467..1e1e95d7fc8 100644
--- a/jstests/noPassthrough/timeseries_insert_ordered_false.js
+++ b/jstests/noPassthrough/timeseries_insert_ordered_false.js
@@ -33,10 +33,13 @@ resetColl();
configureFailPoint(conn, 'failTimeseriesInsert', {metadata: 'fail'});
+// Temporarily use null meta instead of missing meta to accomodate the new $_internalUnpackBucket
+// behavior which is null meta in a bucket is materialized as "null" meta.
+// TODO SERVER-55213: Remove 'meta: null'.
const docs = [
- {_id: 0, [timeFieldName]: ISODate()},
- {_id: 1, [timeFieldName]: ISODate()},
- {_id: 2, [timeFieldName]: ISODate()},
+ {_id: 0, meta: null, [timeFieldName]: ISODate()},
+ {_id: 1, meta: null, [timeFieldName]: ISODate()},
+ {_id: 2, meta: null, [timeFieldName]: ISODate()},
];
let res = assert.commandWorked(coll.insert(docs, {ordered: false}));