Operational Defect Database

BugZero found this defect 58 days ago.

MongoDB | 2620271

shardedDataDistribution aggregation stage returns null fields for timeseries

Last update date:

3/22/2024

Affected products:

MongoDB Server

Affected releases:

7.0.0

7.3.0

Fixed releases:

No fixed releases provided.

Description:

Info

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 docs, owned 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.

Top User Comments


Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Needs Scheduling

Learn More

Search:

...