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

xds/outlierdetection: Stop handling UpdateSubConnState forwarding #6520

Merged
merged 1 commit into from
Aug 9, 2023

Conversation

dfawley
Copy link
Member

@dfawley dfawley commented Aug 9, 2023

All children use StateListener, so this fallback path is no longer needed. Update tests accordingly, too.

RELEASE NOTES: none

@dfawley dfawley added the Type: Internal Cleanup Refactors, etc label Aug 9, 2023
@dfawley dfawley added this to the 1.58 Release milestone Aug 9, 2023
@dfawley dfawley requested a review from zasweq August 9, 2023 18:06
Copy link
Contributor

@zasweq zasweq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@@ -1387,11 +1385,6 @@ func (s) TestConcurrentOperations(t *testing.T) {
t.Error("ResolverError was called after Close(), which breaks the balancer API")
}
},
UpdateSubConnState: func(*stub.BalancerData, balancer.SubConn, balancer.SubConnState) {
if closed.HasFired() {
t.Error("UpdateSubConnState was called after Close(), which breaks the balancer API")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm assuming state listeners still follow this API (can't be called after close)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct!

@zasweq zasweq assigned dfawley and unassigned zasweq Aug 9, 2023
@dfawley dfawley merged commit 8def12a into grpc:master Aug 9, 2023
1 check passed
@dfawley dfawley deleted the uscs_outlierdetection branch August 9, 2023 19:51
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants