Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-88257

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

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 5.0.0, 6.0.0, 7.0.0, 7.3.0
    • Component/s: Catalog
    • Storage Execution
    • ALL

      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.

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: