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


##########
pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/rebalance/TableRebalancer.java:
##########
@@ -387,6 +391,24 @@ private RebalanceResult doRebalance(TableConfig 
tableConfig, RebalanceConfig reb
           tierToInstancePartitionsMap, targetAssignment, preChecksResult, 
summaryResult);
     }
 
+    if (downtime && 
!StringUtils.isEmpty(tableConfig.getValidationConfig().getPeerSegmentDownloadScheme()))
 {

Review Comment:
   so `StringUtils.isEmpty()` checks for both null and empty:
   
   ```
     public static boolean isEmpty(CharSequence cs) {
       return cs == null || cs.length() == 0;
     }
   ```
   
   The above should be sufficient right? let me know if I still missed 
something there though



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