wirybeaver commented on code in PR #16334:
URL: https://github.com/apache/pinot/pull/16334#discussion_r2267338207


##########
pinot-broker/src/main/java/org/apache/pinot/broker/routing/instanceselector/BaseInstanceSelector.java:
##########
@@ -301,6 +305,18 @@ void updateSegmentMaps(IdealState idealState, ExternalView 
externalView, Set<Str
           _oldSegmentCandidatesMap.put(segment, candidates);
         }
       }
+      pools.clear();

Review Comment:
   done



##########
pinot-broker/src/test/java/org/apache/pinot/broker/routing/instanceselector/InstanceSelectorTest.java:
##########
@@ -236,14 +237,14 @@ public void testInstanceSelector() {
     ZkHelixPropertyStore<ZNRecord> propertyStore = 
mock(ZkHelixPropertyStore.class);
     BrokerMetrics brokerMetrics = mock(BrokerMetrics.class);
     BalancedInstanceSelector balancedInstanceSelector =
-        new BalancedInstanceSelector(offlineTableName, propertyStore, 
brokerMetrics, null, Clock.systemUTC(), false,
-            300);
+        new BalancedInstanceSelector(offlineTableName, propertyStore, 
brokerMetrics, null,
+                Clock.systemUTC(), INSTANCE_SELECTOR_CONFIG);

Review Comment:
   done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to