-
Notifications
You must be signed in to change notification settings - Fork 3.9k
grpclb: support explicit fallback from LB #6549
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
Conversation
| if (typeCase != LoadBalanceResponseTypeCase.SERVER_LIST) { | ||
| if (typeCase == LoadBalanceResponseTypeCase.FALLBACK_RESPONSE) { | ||
| useFallbackBackends(); | ||
| maybeUpdatePicker(); |
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.
Do you want to call cancelFallbackTimer()?
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.
done.
| verify(subchannelPool) | ||
| .returnSubchannel(eq(subchannel2), eq(ConnectivityStateInfo.forNonError(READY))); | ||
|
|
||
| // verify fallback (no backends) |
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.
The more common case is that there are fallback backends.
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.
done.
|
although this change is backward compatible, waiting for the proto to be published. |
This noticed that load_balancer.proto had local changes introduced in grpc#6549. This was not noticed by Bazel because grpclb was not using the io_grpc_grpc_proto repository. These issues have been fixed.
This noticed that load_balancer.proto had local changes introduced in #6549. This was not noticed by Bazel because grpclb was not using the io_grpc_grpc_proto repository. These issues have been fixed.
FYI, the proto is not updated yet.