J-HowHuang commented on code in PR #16096:
URL: https://github.com/apache/pinot/pull/16096#discussion_r2152790582


##########
pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/rebalance/TableRebalancer.java:
##########
@@ -231,14 +237,18 @@ private RebalanceResult doRebalance(TableConfig 
tableConfig, RebalanceConfig reb
     boolean enableStrictReplicaGroup = tableConfig.getRoutingConfig() != null
         && 
RoutingConfig.STRICT_REPLICA_GROUP_INSTANCE_SELECTOR_TYPE.equalsIgnoreCase(
         tableConfig.getRoutingConfig().getInstanceSelectorType());
+    boolean forceCommitBeforeMoved =
+        tableConfig.getTableType() == TableType.REALTIME && 
rebalanceConfig.isForceCommitBeforeMoved();
     tableRebalanceLogger.info(
         "Start rebalancing with dryRun: {}, preChecks: {}, reassignInstances: 
{}, "
             + "includeConsuming: {}, bootstrap: {}, downtime: {}, 
minReplicasToKeepUpForNoDowntime: {}, "
             + "enableStrictReplicaGroup: {}, lowDiskMode: {}, bestEfforts: {}, 
batchSizePerServer: {}, "
-            + "externalViewCheckIntervalInMs: {}, 
externalViewStabilizationTimeoutInMs: {}, minimizeDataMovement: {}",
+            + "externalViewCheckIntervalInMs: {}, 
externalViewStabilizationTimeoutInMs: {}, minimizeDataMovement: {}, "
+            + "forceCommitBeforeMoved: {}",
         dryRun, preChecks, reassignInstances, includeConsuming, bootstrap, 
downtime,
         minReplicasToKeepUpForNoDowntime, enableStrictReplicaGroup, 
lowDiskMode, bestEfforts, batchSizePerServer,
-        externalViewCheckIntervalInMs, externalViewStabilizationTimeoutInMs, 
minimizeDataMovement);
+        externalViewCheckIntervalInMs, externalViewStabilizationTimeoutInMs, 
minimizeDataMovement,
+        forceCommitBeforeMoved);

Review Comment:
   The latter is what the current code does (though no warning log yet). I'll 
add to the rebalance config pre-check to show warning if they toggle this with 
an OFFLINE table if that's okay



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