-
Notifications
You must be signed in to change notification settings - Fork 805
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
Added a defensive check in the getTaskListManager function #6199
Conversation
defa363
to
3323efd
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files
... and 26 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
This makes sure we do not steel tasklists we do not own according to the hashring.
3323efd
to
5fb4a50
Compare
What changed?
Added a check whether or not we should own a shard before we steal it.
Why?
This makes sure we do not steal tasklists we do not own according to the
hashring.
How did you test it?
Unit tests, local runs, and deployment in dev environments.
I didn't see any ill effects from the change.
Potential risks
This code path is quite busy, so introducing a check might have performance impacts.
There is a risk that correct requests are rejected because the matching host has a wrong view of the hash ring. I expect this to be transient, and everything should be retried.
We introduce a new error, I have checked the callers and they should all handle unknown errors.
Release notes
Documentation Changes