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

grpc-js: Disallow pick_first as child of outlier_detection #2476

Conversation

murgatroid99
Copy link
Member

This makes Node's behavior match the other languages. The only effect outlier detection can have with a pick_first child policy is to cause a reconnection if the request failure percentage exceeds a certain value. We only want to support outlier detection for health checking, not for connection management, so that combination is now disallowed.

If the user triggers this by explicitly passing a service config in channel arguments, constructing the channel will throw the error immediately. If they trigger it by providing the service config in a DNS TXT record, it should cause requests to fail with that error.

@murgatroid99 murgatroid99 assigned gnossen and unassigned sergiitk Jun 27, 2023
@murgatroid99 murgatroid99 requested review from gnossen and removed request for sergiitk June 27, 2023 17:13
@murgatroid99 murgatroid99 merged commit 409418b into grpc:@grpc/grpc-js@1.8.x Jun 27, 2023
3 of 5 checks passed
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.

None yet

4 participants