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

Fix rueidislock highload #604

Merged
merged 3 commits into from
Aug 10, 2024
Merged

Fix rueidislock highload #604

merged 3 commits into from
Aug 10, 2024

Conversation

rueian
Copy link
Collaborator

@rueian rueian commented Aug 8, 2024

Closes #602

This PR keeps using the same event watcher of client-side caching during the retries of rueidislock.WithContext and watches the event for retrying.

Previously, there was a race that could lead to the removal of the watcher thus causing busy retries and missing events.

Signed-off-by: Rueian <rueiancsie@gmail.com>
Signed-off-by: Rueian <rueiancsie@gmail.com>
@rueian rueian mentioned this pull request Aug 8, 2024
@rueian rueian marked this pull request as ready for review August 8, 2024 17:10
@rueian rueian force-pushed the fix-rueidislock-highload branch 2 times, most recently from 5acf6b9 to 0db70e2 Compare August 9, 2024 14:58
Signed-off-by: Rueian <rueiancsie@gmail.com>
@rueian rueian merged commit d910fc6 into main Aug 10, 2024
38 checks passed
@rueian rueian deleted the fix-rueidislock-highload branch October 2, 2024 05:03
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.

rueidislock CPU highload
1 participant