Skip to content

Commit

Permalink
xds: advertise send_all_clusters client feature in LRS requests (#7477)
Browse files Browse the repository at this point in the history
  • Loading branch information
voidzcy authored Oct 1, 2020
1 parent ec0d01d commit 594cc76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xds/src/main/java/io/grpc/xds/LoadReportClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ final class LoadReportClient {
this.syncContext = checkNotNull(syncContext, "syncContext");
this.timerService = checkNotNull(scheduledExecutorService, "timeService");
this.backoffPolicyProvider = checkNotNull(backoffPolicyProvider, "backoffPolicyProvider");
checkNotNull(stopwatchSupplier, "stopwatchSupplier");
this.retryStopwatch = stopwatchSupplier.get();
this.node = checkNotNull(node, "node");
this.retryStopwatch = checkNotNull(stopwatchSupplier, "stopwatchSupplier").get();
this.node = checkNotNull(node, "node").toBuilder()
.addClientFeatures("envoy.lrs.supports_send_all_clusters").build();
logId = InternalLogId.allocate("lrs-client", targetName);
logger = XdsLogger.withLogId(logId);
logger.log(XdsLogLevel.INFO, "Created");
Expand Down
1 change: 1 addition & 0 deletions xds/src/test/java/io/grpc/xds/LoadReportClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ private static LoadStatsRequest buildInitialRequest() {
.setNode(
Node.newBuilder()
.setId("LRS test")
.addClientFeatures("envoy.lrs.supports_send_all_clusters")
.setMetadata(
Struct.newBuilder()
.putFields(
Expand Down

0 comments on commit 594cc76

Please sign in to comment.