Skip to content

Commit

Permalink
core: OutlierDetectionLoadBalancer to pass child LB config. (#9467) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
temawi committed Aug 22, 2022
1 parent ac20c19 commit 184fdaa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Expand Up @@ -139,7 +139,9 @@ public void handleResolvedAddresses(ResolvedAddresses resolvedAddresses) {
trackerMap.cancelTracking();
}

switchLb.handleResolvedAddresses(resolvedAddresses);
switchLb.handleResolvedAddresses(
resolvedAddresses.toBuilder().setLoadBalancingPolicyConfig(config.childPolicy.getConfig())
.build());
}

@Override
Expand Down
Expand Up @@ -233,7 +233,9 @@ public void handleResolvedAddresses() {
loadBalancer.handleResolvedAddresses(resolvedAddresses);

// Handling of resolved addresses is delegated
verify(mockChildLb).handleResolvedAddresses(resolvedAddresses);
verify(mockChildLb).handleResolvedAddresses(
resolvedAddresses.toBuilder().setLoadBalancingPolicyConfig(config.childPolicy.getConfig())
.build());

// There is a single pending task to run the outlier detection algorithm
assertThat(fakeClock.getPendingTasks()).hasSize(1);
Expand Down

0 comments on commit 184fdaa

Please sign in to comment.