Operational Defect Database

BugZero found this defect 61 days ago.

MongoDB | 2614156

Views created on timeseries system.buckets collections are omitted from listCollections output

Last update date:

3/20/2024

Affected products:

MongoDB Server

Affected releases:

5.0.0

6.0.0

7.0.0

7.3.0

Fixed releases:

No fixed releases provided.

Description:

Info

This logic in the listCollections command causes the view to not be returned when the system.buckets namespace exists even when the view is not the view namespace for the timeseries collection. The undocumented $listCatalog aggregation stage does still return the view in this situation. However, it incorrectly identifies the view as {type: "timeseries"} despite the view not being the view namespace for the timeseries collection. Both of these situations can likely be resolved by applying the same definition of "is this namespace the view namespace for a timeseries collection?" as the write commands do already. That is, check the result of NamespaceString::makeTimeseriesBucketsNamespace() of the view is an existing timeseries collection.

Top User Comments


Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Needs Scheduling

Learn More

Search:

...