Jackie-Jiang commented on code in PR #13488: URL: https://github.com/apache/pinot/pull/13488#discussion_r1669117015
########## pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotTableRestletResource.java: ########## @@ -677,14 +678,30 @@ public RebalanceResult rebalance( if (dryRunResult.getStatus() == RebalanceResult.Status.DONE) { // If dry-run succeeded, run rebalance asynchronously rebalanceConfig.setDryRun(false); - _executorService.submit(() -> { + Future<RebalanceResult> rebalanceResultFuture = _executorService.submit(() -> { try { - _pinotHelixResourceManager.rebalanceTable(tableNameWithType, rebalanceConfig, rebalanceJobId, true); + return _pinotHelixResourceManager.rebalanceTable( + tableNameWithType, rebalanceConfig, rebalanceJobId, true); Review Comment: You are right, I didn't realize there is an extra `return` added to the line :-P -- 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