Repository navigation
[server] Store rebalance tasks in remote storage - #5133
swuferhong wants to merge 1 commit into
Conversation
2d862fd to
e2f1b36
Compare
f6fd7f0 to
4af1bb2
Compare
4af1bb2 to
0bfc8f5
Compare
|
Could we narrow this PR to the original problem: a large bucket migration plan can exceed ZooKeeper’s znode size limit? The current implementation also changes how the coordinator handles cancellation, finalization, progress queries, and concurrent submissions. With AI-assisted changes in particular, I think we should be deliberate about how much complexity a focused fix introduces. I’d suggest a smaller design:
The test I’d most like to see is a plan that actually exceeds the znode limit: submit it, recover it after a coordinator restart, and verify that cancellation and finalization reuse the original remote file. |
|
|
||
| private final String id; | ||
| private final List<Endpoint> endpoints; | ||
| private final Set<String> supportedFeatures; |
There was a problem hiding this comment.
Could we drop supportedFeatures from CoordinatorAddress? For this change, we could keep existing inline rebalance tasks in their original format and let the platform reject new rebalances until the rolling upgrade is complete. Checking only live coordinators can miss an older standby that is temporarily offline and later takes over with a remote handle it cannot read.
My concern is that this list becomes a long-lived part of the ZooKeeper registration format. If each incompatible znode format change needs its own flag, every coordinator registration grows, and we add another capability check to maintain.
Purpose
Linked issue: close #3868
A rebalance task contains the complete bucket migration plan. As clusters grow, the serialized task can approach ZooKeeper's znode size limit, which may cause persistence or coordinator recovery to fail.
Loading a large rebalance task synchronously during coordinator initialization would also make coordinator startup depend on remote storage latency and availability.
This PR stores large rebalance tasks in remote storage while keeping ZooKeeper as the authoritative pointer. It also moves rebalance recovery out of the synchronous coordinator startup path.
Brief change log
Tests
API and Format
Documentation