I noticed in jstests/concurrency/fsm_workloads/timeseries_insert_idle_bucket_expiration.js we can arrive to this invalid state:
{
"_id" : ObjectId("63fe115071dee89626713073"),
"control" : {
"version" : 1,
"min" : {
"time" : ISODate("2023-02-28T14:36:00Z"),
"tag" : 1
},
"max" : {
"time" : ISODate("2023-02-28T14:42:42.177Z"),
"tag" : 1
}
},
"meta" : 1,
"data" : {
"time" : {
"0" : ISODate("2023-02-28T14:36:02.572Z"),
"1" : ISODate("2023-02-28T14:42:42.177Z")
}
}
}
For some reason we are adding the metaField value to the control block. Possibly in the process of reopening buckets and inserting more measurements into it.