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: concurrent provider certs validation #766

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

stalniy
Copy link
Contributor

@stalniy stalniy commented Jan 31, 2025

Why

when we have 2 concurrent requests 1 and 2,

#1 goes into finally block and removes Sema instance and then #2 goes into finally block and tries to release released Sema instance but that instance was removed by #1

What

Checks whether lock exists in the hashmap of locks because it could be released and cleared by another validation request

@stalniy stalniy requested a review from a team as a code owner January 31, 2025 18:41
ygrishajev
ygrishajev previously approved these changes Jan 31, 2025
baktun14
baktun14 previously approved these changes Jan 31, 2025
@stalniy stalniy dismissed stale reviews from baktun14 and ygrishajev via 742a841 February 3, 2025 06:00
@stalniy stalniy force-pushed the fix/concurent-cert-validation branch from f345de0 to 742a841 Compare February 3, 2025 06:00
@stalniy stalniy force-pushed the fix/concurent-cert-validation branch from 742a841 to f377993 Compare February 3, 2025 06:15
@stalniy stalniy merged commit 600c7cd into main Feb 3, 2025
5 checks passed
@stalniy stalniy deleted the fix/concurent-cert-validation branch February 3, 2025 10: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.

3 participants