Skip to content

Conversation

@FGasper
Copy link
Collaborator

@FGasper FGasper commented Nov 22, 2024

When the verifier finds a metadata mismatch it enqueues a recheck of that metadata in the next generation.

This is fine, but since metadata-check tasks also partition documents & create document-checking tasks for those partitions, what’s been happening is that any time some collection metadata property (e.g., an index) mismatches, tasks are enqueued to recheck all of the collection’s documents.

Since the partitioning stuff is only appropriate for generation 0, this changeset restricts that behavior accordingly.

For convenience this also adds mslices.Of from mongosync’s mongo-go.

@FGasper FGasper requested a review from tdq45gj November 22, 2024 16:45
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 a85f5a6 into mongodb-labs:main Nov 22, 2024
33 checks passed
@FGasper FGasper deleted the REP-5319-only-partition-in-gen0 branch November 22, 2024 18:31
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