Skip to content
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

core: OutlierDetectionLoadBalancer to pass child LB config. #9467

Merged
merged 1 commit into from Aug 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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