summaryrefslogtreecommitdiff
path: root/jstests/concurrency
diff options
context:
space:
mode:
authorDrew Paroski <drew.paroski@mongodb.com>2023-04-18 03:26:55 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-04-27 21:24:03 +0000
commit0145677e42d72b24910401f06da986c767738914 (patch)
treebf11371090b38f0ea99a648d1b180197a2dc4f8b /jstests/concurrency
parent07b38e091b48acd305469d525b81aebf3aeadbf1 (diff)
downloadmongo-0145677e42d72b24910401f06da986c767738914.tar.gz
SERVER-76510 Make makeBsonObj() preserve field order
Diffstat (limited to 'jstests/concurrency')
-rw-r--r--jstests/concurrency/fsm_workloads/random_moveChunk_timeseries_inserts.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/jstests/concurrency/fsm_workloads/random_moveChunk_timeseries_inserts.js b/jstests/concurrency/fsm_workloads/random_moveChunk_timeseries_inserts.js
index 7491ff8d71e..18e9294c66a 100644
--- a/jstests/concurrency/fsm_workloads/random_moveChunk_timeseries_inserts.js
+++ b/jstests/concurrency/fsm_workloads/random_moveChunk_timeseries_inserts.js
@@ -36,8 +36,8 @@ var $config = extendWorkload($config, function($config, $super) {
$config.data.bucketPrefix = "system.buckets.";
- $config.data.timeField = 't';
$config.data.metaField = 'm';
+ $config.data.timeField = 't';
$config.data.generateMetaFieldValueForInitialInserts = () => {
return Math.floor(Random.rand() * $config.data.numMetaCount);
@@ -63,8 +63,8 @@ var $config = extendWorkload($config, function($config, $super) {
const metaVal = this.generateMetaFieldValueForInsertStage(this.tid);
const doc = {
_id: new ObjectId(),
- [this.timeField]: new Date(timer),
[this.metaField]: metaVal,
+ [this.timeField]: new Date(timer),
f: metaVal,
};
assertAlways.commandWorked(db[collName].insert(doc));
@@ -143,8 +143,8 @@ var $config = extendWorkload($config, function($config, $super) {
const verifyBucketIndex = (bucketIndex) => {
const unpackStage = {
"$_internalUnpackBucket": {
- "timeField": this.timeField,
"metaField": this.metaField,
+ "timeField": this.timeField,
"bucketMaxSpanSeconds": NumberInt(3600)
}
};
@@ -175,7 +175,7 @@ var $config = extendWorkload($config, function($config, $super) {
db[this.nonShardCollName].drop();
assertAlways.commandWorked(db.createCollection(
- collName, {timeseries: {timeField: this.timeField, metaField: this.metaField}}));
+ collName, {timeseries: {metaField: this.metaField, timeField: this.timeField}}));
cluster.shardCollection(db[collName], {t: 1}, false);
// Create indexes to verify index integrity during the teardown state.
@@ -196,8 +196,8 @@ var $config = extendWorkload($config, function($config, $super) {
const metaVal = this.generateMetaFieldValueForInitialInserts(i);
const doc = {
_id: new ObjectId(),
- [this.timeField]: new Date(currentTimeStamp),
[this.metaField]: metaVal,
+ [this.timeField]: new Date(currentTimeStamp),
f: metaVal,
};
bulk.insert(doc);