mirror of https://github.com/grpc/grpc-java.git
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:
parent
0192bece47
commit
ebb43a69e7
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue