Testing bucketing on a timeseries collection. Why are multiple buckets being created even though I am inserting exactly the same data?

Collection Info:
image

Data that I am inserting:
image

Multiple buckets for the same timestamp and metadata!

Inserted the same set of recs 2x. Instead of 2 buckets, 3 buckets are getting created. A list of 2 records - inserted 2x - is creating 3 buckets? How?

6 months later

Hi @Sandeep_Muthangi,

What you reported is indeed slightly sub-optimal bucketing behavior by the server that is tracked here: SERVER-96753.

While it has been fixed and will be released in a newer version, there is a core principle about usage of the server that exposed this bug. It is not recommended to insert measurements that exceed the max span of a bucket in one insert command.