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

Add `numOwnedBuckets` and `numOrphanedBuckets` to $shardedDataDistribution response for timeseries collections

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • ALL
    • v8.0
    • CAR Team 2025-02-03, CAR Team 2025-02-17, CAR Team 2025-03-03
    • 1

      After SERVER-88400, the aggregation stage $shardedDataDistribution no longer returns null for the fields numOwnedDocuments, ownedSizeBytes, and orphanedSizeBytes on a timeseries collection.

      However, the field numOwnedDocuments returns the number of buckets instead of the number of documents. This is incorrect according to the name of the field.
      Therefore, we've decided to keep the numOwnedDocuments field for time-series collection as null and add a new field called numOwnedBuckets, and do the same for numOrphanedDocs.

      Note that it would be too expensive to get the actual number of documents from a timeseries collection; that's why we decided to keep them as `null` and add the new 'bucket' fields instead.

            Assignee:
            silvia.surroca@mongodb.com Silvia Surroca
            Reporter:
            silvia.surroca@mongodb.com Silvia Surroca
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: