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

shardedDataDistribution aggregation stage must not return null fields for timeseries

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc14
    • Affects Version/s: 6.0.0, 7.0.0, 7.3.0
    • Component/s: None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • v8.0, v7.0, v6.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.

        1. image (7).png
          178 kB
          Matt Panton

            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: