From fbefdf5ea7dcbbf690828b1e6df86deb07f8b885 Mon Sep 17 00:00:00 2001 From: Terry Wilson Date: Mon, 22 Aug 2022 11:12:51 -0700 Subject: [PATCH] core: [outlier detection] Get addresses from subchannel args. (#9468) --- .../main/java/io/grpc/util/OutlierDetectionLoadBalancer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/io/grpc/util/OutlierDetectionLoadBalancer.java b/core/src/main/java/io/grpc/util/OutlierDetectionLoadBalancer.java index 5b3fb6ee0b8..3473dd174cd 100644 --- a/core/src/main/java/io/grpc/util/OutlierDetectionLoadBalancer.java +++ b/core/src/main/java/io/grpc/util/OutlierDetectionLoadBalancer.java @@ -206,7 +206,7 @@ public Subchannel createSubchannel(CreateSubchannelArgs args) { // If the subchannel is associated with a single address that is also already in the map // the subchannel will be added to the map and be included in outlier detection. - List addressGroups = subchannel.getAllAddresses(); + List addressGroups = args.getAddresses(); if (hasSingleAddress(addressGroups) && trackerMap.containsKey(addressGroups.get(0).getAddresses().get(0))) { AddressTracker tracker = trackerMap.get(addressGroups.get(0).getAddresses().get(0));