Add "#server" as dataplane target value for xDS enabled gRPC servers. (#11715)

As mentioned in [A71 xDS Fallback]( https://github.com/grpc/proposal/blob/master/A71-xds-fallback.md#update-csds-to-aggregate-configs-from-multiple-xdsclient-instances):
updated dataplane target to "#server" for xDS-enabled gRPC servers.
This commit is contained in:
Vindhya Ningegowda 2024-11-27 10:59:54 -08:00 committed by GitHub
parent 0192bece47
commit ebb43a69e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 3 deletions

View File

@ -172,9 +172,7 @@ final class XdsServerWrapper extends Server {
private void internalStart() {
try {
// TODO(dnvindhya): Add "#server" as "grpc.target" attribute value for
// xDS enabled servers.
xdsClientPool = xdsClientPoolFactory.getOrCreate("", new MetricRecorder() {});
xdsClientPool = xdsClientPoolFactory.getOrCreate("#server", new MetricRecorder() {});
} catch (Exception e) {
StatusException statusException = Status.UNAVAILABLE.withDescription(
"Failed to initialize xDS").withCause(e).asException();