somandal commented on code in PR #15110:
URL: https://github.com/apache/pinot/pull/15110#discussion_r1985795968


##########
pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/rebalance/TableRebalancer.java:
##########
@@ -191,17 +191,21 @@ private RebalanceResult doRebalance(TableConfig 
tableConfig, RebalanceConfig reb
     boolean bestEfforts = rebalanceConfig.isBestEfforts();
     long externalViewCheckIntervalInMs = 
rebalanceConfig.getExternalViewCheckIntervalInMs();
     long externalViewStabilizationTimeoutInMs = 
rebalanceConfig.getExternalViewStabilizationTimeoutInMs();
+    String minimizeDataMovementStr = rebalanceConfig.getMinimizeDataMovement();
+    Boolean minimizeDataMovement =
+        minimizeDataMovementStr.toLowerCase().matches("^(true|false)$") ? 
Boolean.valueOf(minimizeDataMovementStr)

Review Comment:
   I didn't understand - here you're checking if they are true or false and you 
use that, otherwise set it to null. I'm saying if you expect the 3rd value to 
be "DEFAULT" then check for that explicitly and throw an exception as a 
parameter check failed kind of error



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

Reply via email to