abhishekbafna commented on code in PR #17842:
URL: https://github.com/apache/pinot/pull/17842#discussion_r2909300891


##########
pinot-controller/src/main/java/org/apache/pinot/controller/validation/BrokerResourceValidationManager.java:
##########
@@ -45,6 +49,17 @@ public BrokerResourceValidationManager(ControllerConf 
config, PinotHelixResource
         controllerMetrics);
   }
 
+  @Override
+  protected List<String> getTablesToProcess(Properties periodicTaskProperties) 
{
+    List<String> tables = super.getTablesToProcess(periodicTaskProperties);
+    if (periodicTaskProperties.get(PeriodicTask.PROPERTY_KEY_TABLE_NAME) != 
null) {
+      return tables;
+    }
+    List<String> combined = new ArrayList<>(tables);
+    
combined.addAll(_pinotHelixResourceManager.getBrokerResourceLogicalTablePartitions());
+    return combined;
+  }
+
   @Override

Review Comment:
   The logical table should have leader selection and it should be processed by 
multiple controller at the same time.



-- 
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