You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fluss.apache.org by "morazow (via GitHub)" <gi...@apache.org> on 2026/08/19 09:25:17 UTC

Re: [PR] [server] Add listRebalances API and expose rebalance timestamps [fluss]

morazow commented on PR #3985:
URL: https://github.com/apache/fluss/pull/3985#issuecomment-5340158735

   **Scope note for reviewers:** per-bucket detail for historical rebalances
   
   This PR keeps `listRebalances()` deliberately summary-only (id, status, timestamps). The per-bucket plan of a retained historical rebalance is already persisted, each history znode stores the full `RebalanceTask`, plan included.
   
   But `listRebalanceProgress(id)` still throws `NoRebalanceInProgressException` for non-current ids, so that plan is not yet reachable through the API.
   
   It is easier to enable this API: `listRebalanceProgress(id)` fall back to the ZooKeeper history when the id is not current, and build the RebalanceProgress from the stored plan. No proto or serde change is needed; the existing response message already carries per-bucket plans. 
   
   Keeping it out of this PR keeps the review surface small and leaves one design point open for discussion:
   
   - History stores plans plus the overall final status, not per-bucket outcomes (those live only in coordinator memory). A historical RebalanceProgress would stamp every bucket with the overall status — exact for COMPLETED, approximate for FAILED/CANCELED. If per-bucket outcomes matter, the follow-up would instead need a serde bump to store RebalanceResultForBucket per bucket. Opinions welcome.
   
   The follow-up also changes one contract: `NoRebalanceInProgressException` would no longer be thrown for ids still in Zookeeper, which I read as the intent of #3965.


-- 
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: issues-unsubscribe@fluss.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org