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

shardedDataDistribution aggregation stage must not return null fields for timeseries

    • Catalog and Routing
    • Fully Compatible
    • ALL
    • v8.0
    • CAR Team 2024-07-22
    • 1

      The $shardedDataDistribution aggregation stage is supposed to return 4 fields : numOrphanedDocs, numOwnedDocuments, ownedSizeBytes and orphanedSizeBytes.

      When the stage is invoked on a bucket collection, it correctly reports the numOrphanedDocs but outputs null for all other fields. The bug arises because $shardedDataDistribution relies on the output of the $collStats aggregation stage that outputs a different set of fields for timeseries collections.

      Those are the ways we currently compute the number of owned docsowned size and orphaned size in the $shardedDataDistribution stage relying on storageStats.count and storageStats.avgObjSize. Purpose of this ticket is to change the stage to compute such metrics based on timeseries.bucketCount and timeseries.avgBucketSize when invoked on a bucket collection.

            Assignee:
            laura.mestrestorres@mongodb.com Laura Mestres Torres (Inactive)
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: