-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fixing the multiple files concurrent write issue when reloading SSLFactory #12384
Fixing the multiple files concurrent write issue when reloading SSLFactory #12384
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #12384 +/- ##
=============================================
- Coverage 61.77% 27.73% -34.04%
Complexity 207 207
=============================================
Files 2425 2425
Lines 132753 132766 +13
Branches 20535 20535
=============================================
- Hits 82005 36821 -45184
- Misses 44730 93150 +48420
+ Partials 6018 2795 -3223
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
+ "on file {} changes", baseSslFactory, keyStorePath, trustStorePath, changedFile); | ||
try { | ||
// Need to retry a few times because when one file (key store or trust store) is updated, the other file | ||
// (trust store or key store) may not have been fully written yet, so we need to wait a bit and retry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also add a note that it's ok for 3 retries failure, the watcher will be triggered again and renew.
…ctory (apache#12384) * add retry to SSLFactory reloading * update comment
In our tests, we found that when reloading SSLFactory, need to retry a few times because when one file (key store or trust store) is updated, the other file (trust store or key store) may not have been fully written yet, so we need to wait a bit and retry.