From 7c00652698cb4ca95cf66613944e0a030200e854 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 66380b9631b..68fba91cda6 100644 --- a/core/src/main/java/io/grpc/util/OutlierDetectionLoadBalancer.java +++ b/core/src/main/java/io/grpc/util/OutlierDetectionLoadBalancer.java @@ -204,7 +204,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));