Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize failed key processing by indexing workitems by shardingkey + workid #33755

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

arunpandianp
Copy link
Contributor

The n^2 loop in failWorkForKey hols the ActiveWorkState mutex and causes delays when many items fail

@arunpandianp
Copy link
Contributor Author

R: @scwhittle

Copy link
Contributor

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control. If you'd like to restart, comment assign set of reviewers

@arunpandianp
Copy link
Contributor Author

ExecutableWork is an autovalue though, so it may have an equals which it seems like it shouldn't. Maybe we should unautovalue that instead of changing here?

I'll think about this more. Don't want to block this PR on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants