Skip to content

Conversation

@FGasper
Copy link
Collaborator

@FGasper FGasper commented Nov 15, 2024

Presently the only limit on a recheck task’s size is BSON’s document-size limit (i.e., 16 MiB). Thus, a single task can feasibly include every recheck. If there are millions of rechecks, that means only 1 thread is doing all of them, which increases the likelihood that migration-verifier would fail to keep pace with the source workload.

This changeset addresses this problem by capping the recheck task size according to the number of pending rechecks and the number of workers.

@FGasper FGasper requested a review from tdq45gj November 15, 2024 20:40
@FGasper FGasper marked this pull request as ready for review November 15, 2024 20:40
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 c94bed3 into mongodb-labs:main Nov 15, 2024
5 checks passed
@FGasper FGasper deleted the minimize_recheck_task_doccount branch November 15, 2024 21:02
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