Jackie-Jiang commented on code in PR #15284: URL: https://github.com/apache/pinot/pull/15284#discussion_r2019296046
########## pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/rebalance/TableRebalancer.java: ########## @@ -662,6 +663,29 @@ private RebalanceSummaryResult calculateDryRunSummary(Map<String, Map<String, St Set<String> serversRemoved = new HashSet<>(); Set<String> serversUnchanged = new HashSet<>(); Set<String> serversGettingNewSegments = new HashSet<>(); + Map<String, RebalanceSummaryResult.TagInfo> tagsInfoMap = new HashMap<>(); + String serverTenantName = tableConfig.getTenantConfig().getServer(); + if (serverTenantName != null) { + String serverTenantTag = + TagNameUtils.getServerTagForTenant(serverTenantName, tableConfig.getTableType()); + tagsInfoMap.put(serverTenantTag, + new RebalanceSummaryResult.TagInfo(serverTenantTag)); + } + if (tableConfig.getInstanceAssignmentConfigMap() != null) { + // for simplicity, including all segment types present in instanceAssignmentConfigMap + tableConfig.getInstanceAssignmentConfigMap().values().forEach(instanceAssignmentConfig -> { + if (instanceAssignmentConfig.getTagPoolConfig().isPoolBased()) { Review Comment: Yes. Tag and pool settings are independent, and tag is used even if pool is not set up. -- 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