gortiz commented on code in PR #12345: URL: https://github.com/apache/pinot/pull/12345#discussion_r1474244625
########## pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/periodictask/ControllerPeriodicTask.java: ########## @@ -63,29 +69,25 @@ protected final void runTask(Properties periodicTaskProperties) { // Check if we have a specific table against which this task needs to be run. String propTableNameWithType = (String) periodicTaskProperties.get(PeriodicTask.PROPERTY_KEY_TABLE_NAME); // Process the tables that are managed by this controller - List<String> tablesToProcess = new ArrayList<>(); - List<String> nonLeaderForTables = new ArrayList<>(); - if (propTableNameWithType == null) { - // Table name is not available, so task should run on all tables for which this controller is the lead. - for (String tableNameWithType : _pinotHelixResourceManager.getAllTables()) { - if (_leadControllerManager.isLeaderForTable(tableNameWithType)) { - tablesToProcess.add(tableNameWithType); - } else { - nonLeaderForTables.add(tableNameWithType); - } - } - } else { - // Table name is available, so task should run only on the specified table. - if (_leadControllerManager.isLeaderForTable(propTableNameWithType)) { - tablesToProcess.add(propTableNameWithType); - } - } + Set<String> allTables = propTableNameWithType == null Review Comment: Changed -- 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