loserwang1024 commented on code in PR #3429:
URL: https://github.com/apache/fluss/pull/3429#discussion_r3353109066


##########
fluss-server/src/main/java/org/apache/fluss/server/coordinator/CoordinatorEventProcessor.java:
##########
@@ -645,6 +650,13 @@ public void process(CoordinatorEvent event) {
             completeFromCallable(
                     cancelRebalanceEvent.getRespCallback(),
                     () -> processCancelRebalance(cancelRebalanceEvent));
+        } else if (event instanceof RebalanceTaskTimeoutEvent) {
+            RebalanceTaskTimeoutEvent timeoutEvent = 
(RebalanceTaskTimeoutEvent) event;
+            LOG.warn(
+                    "Rebalance task for {} timed out. Treating as completed.",
+                    timeoutEvent.getTableBucket());
+            rebalanceManager.finishRebalanceTask(
+                    timeoutEvent.getTableBucket(), RebalanceStatus.COMPLETED);

Review Comment:
   ```suggestion
                       timeoutEvent.getTableBucket(), RebalanceStatus.FAILED); 
or  timeoutEvent.getTableBucket(), RebalanceStatus.TIMEOUT);
   ```
   



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

Reply via email to