Skip to content

[server] Make timed-out rebalance tasks recoverable - #3860

Open
swuferhong wants to merge 1 commit into
apache:mainfrom
swuferhong:add-timeout-for-rebalance
Open

[server] Make timed-out rebalance tasks recoverable#3860
swuferhong wants to merge 1 commit into
apache:mainfrom
swuferhong:add-timeout-for-rebalance

Conversation

@swuferhong

Copy link
Copy Markdown
Contributor

Purpose

Linked issue: close #3859

Treat rebalance timeout as a non-final state and continue tracking timed-out bucket migrations without blocking subsequent tasks.

Fence stale timeout and NotifyLeaderAndIsr events by rebalance attempt and request epochs. Reconcile migrations idempotently from persisted assignment and LeaderAndIsr state, and recover unfinished tasks after coordinator restart.

Persist cancellation intent before changing local state, drain admitted tasks safely, retry final-state persistence, and treat deleted buckets as completed.

Brief change log

Tests

API and Format

Documentation

Co-Authored-By: Codex <noreply@openai.com>
AI-Model: gpt-5.6-sol

AI-Contributed/Feature: 330/330
AI-Contributed/UT: 469/469
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Improvement] Make timed-out rebalance tasks recoverable

1 participant