xds/internal/cdsbalancer: Fix race between processing of security configuration and creation of SubConns#6789
Closed
zasweq wants to merge 1 commit into
Closed
xds/internal/cdsbalancer: Fix race between processing of security configuration and creation of SubConns#6789zasweq wants to merge 1 commit into
zasweq wants to merge 1 commit into
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #6789 +/- ##
==========================================
+ Coverage 83.24% 83.41% +0.16%
==========================================
Files 285 285
Lines 30950 30959 +9
==========================================
+ Hits 25765 25825 +60
+ Misses 4099 4056 -43
+ Partials 1086 1078 -8
|
dfawley
reviewed
Nov 14, 2023
dfawley
left a comment
Member
There was a problem hiding this comment.
Looks like we store a pointer in the address's attributes, so this is still racy when the data is changed while the xdsHI is being read.
Note that the handshakeinfo itself has a lock when accessing its methods. Is that sufficient? I guess not given that the updates happen in 3 steps, but if we combined those into one operation, is that enough to fix everything?
Contributor
Author
|
Discussed offline to do atomic read/write to pointer so Conn can get new handshake info if reconnected, implemented in this PR: #6796. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #6787.
RELEASE NOTES: