Operational Defect Database

BugZero found this defect 137 days ago.

MongoDB | 2536496

Inserting mixed-schema buckets through the system.buckets collection doesn't set the timeseriesBucketsMayHaveMixedSchemaData flag

Last update date:

3/14/2024

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

8.0.0-rc0

Description:

Info

All newly created time-series collections have timeseriesBucketsMayHaveMixedSchemaData set to false. This flag never gets changed as time-series inserts through the view can never result in mixed-schema buckets. However, one can still insert mixed-schema buckets through the system.buckets collection (direct write) and we wouldn't update the flag to true. mongodump/mongorestore does this. We should check whether buckets inserted via direct writes contain mixed-schema data and set the flag appropriately.

Top User Comments

xgen-internal-githook commented on Thu, 8 Feb 2024 16:12:22 +0000: Author: {'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'} Message: SERVER-84531 Require `collMod` for direct mixed schema bucket writes (#18648) GitOrigin-RevId: 9d4e4f2d3fbce6d49db056e5f85a590aef91c8b1 Branch: master https://github.com/mongodb/mongo/commit/772760cd4df3d1200190f202d1bedc85362bb008

Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Closed

Learn More

Search:

...