Skip to content

fix: concurrent provider certs validation#766

Merged
stalniy merged 1 commit intomainfrom
fix/concurent-cert-validation
Feb 3, 2025
Merged

fix: concurrent provider certs validation#766
stalniy merged 1 commit intomainfrom
fix/concurent-cert-validation

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. refs #170

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

Comments