Operational Defect Database

BugZero found this defect 67 days ago.

MongoDB | 2607105

CollectionImpl::getCollectionOptions does not serialise with concurrent oplog metadata updates

Last update date:

3/15/2024

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

No fixed releases provided.

Description:

Info

The oplog is reportedly an exception to our catalog concurrency rules and updates its metadata in place. CollectionImpl::getCollectionOptions does not handle the oplog's special case and wrongly reads the oplog metadata as if it weren't updated in place. As a consequence, we have observed a race between resizing the oplog and the FTDC controller periodically sampling the oplog metadata. We should, at minimum, serialise getting the collection options for the oplog and audit the other metadata APIs for other possible oplog accesses.

Top User Comments


Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

In Progress

Learn More

Search:

...