deepthi912 commented on code in PR #13296: URL: https://github.com/apache/pinot/pull/13296#discussion_r1717248383
########## pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/PinotHelixResourceManager.java: ########## @@ -448,6 +449,13 @@ public List<InstanceConfig> getAllHelixInstanceConfigs() { return HelixHelper.getInstanceConfigs(_helixZkManager); } + /** + * returns server to segments count + */ + public Map<String, Integer> getServerToSegmentCountMap() { + return _serverToSegmentCountMap; Review Comment: I tried to calculate _serverToSegmentCountMap through getServerToSegmentsMap itself which I called both for detailed = true and detailed = false. Added details of the count only after calculating it in the api. -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org