Skip to content

Conversation

FGasper
Copy link
Collaborator

@FGasper FGasper commented Sep 18, 2025

Commit b4467f7 broke statistics computation when a recheck generation includes a collection-metadata task, e.g., if an index or collection attribute mismatches.

This fixes that by refining the aggregation logic. Tests are added to shore up this functionality.

Commit b4467f7 broke statistics computation when a recheck task contains
no document IDs because in that case the `_ids` field may not be an array.

This fixes that by checking the type before deciding whether to use
{ $size: "$_ids" } or $source_document_count.
@FGasper FGasper requested a review from tdq45gj September 18, 2025 18:46
Copy link
Collaborator

@tdq45gj tdq45gj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@FGasper FGasper merged commit 25e7f29 into mongodb-labs:main Sep 21, 2025
85 checks passed
@FGasper FGasper deleted the felipe_fix_recheck_stats branch September 21, 2025 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants