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

Prevent race between update scheduling and set deletion #1590

Open
wants to merge 1 commit into
base: b4.4
Choose a base branch
from

Conversation

nichamon
Copy link
Collaborator

Fix a race condition where a set delete request from a peer could invalidate maps while an update is being scheduled. Hold the lock during the entire update submission to ensure maps remains valid.

Fix a race condition where a set delete request from a peer could
invalidate maps while an update is being scheduled. Hold the lock during
the entire update submission to ensure maps remains valid.
@nichamon nichamon added this to the v4.4.5 milestone Jan 24, 2025
@nichamon
Copy link
Collaborator Author

nichamon commented Jan 24, 2025

The patch has been tested that it doesn't create deadlock, and the crash has gone away. A small performance evaluation comparing with the code base without the patch has been studied. The 'oversampled' and 'outstanding update' counters are used to see the patch affect on the performance. The counters before and after the patch have insignificant differences.

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.

1 participant