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

TS Collections report incorrect namespace in $collStats output

    • Type: Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 6.0.10
    • Component/s: None
    • Query Integration
    • ALL
    • Hide

      Deploy a MongoDB atlas cluster that supports time series (>5.0). I've reproded on 6.0.10 and 7.0.1

       

      Create a timeseries collection

      Run the collStats command on the collection, observe that the correct namespace is reported

      Run the $collStats aggregation on the collection, observe that the reported collection name is prepended with system.buckets

      Show
      Deploy a MongoDB atlas cluster that supports time series (>5.0). I've reproded on 6.0.10 and 7.0.1   Create a timeseries collection Run the collStats command on the collection, observe that the correct namespace is reported Run the $collStats aggregation on the collection, observe that the reported collection name is prepended with system.buckets

      When a the $collStats aggregation is executed against a timeSeries collection, the namespace is reported as .<dbName>.system.buckets.<actualCollectionName>

      When the collStats command is run on the same collection, it correctly reports the namespace as <dbName>.<actualCollectionName>

       

      I've been able to reproduce this issue in MongoDB 6.0.10 and 7.0. Attaching example outputs from both the command and the agg stage

            Assignee:
            santiago.roche@mongodb.com Santiago Roche
            Reporter:
            jack.weir@mongodb.com Jack Weir
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: