Skip to content

fix(inkless:consolidation): recover a switched consolidated leader after local-log loss#653

Draft
viktorsomogyi wants to merge 1 commit into
svv/ts-unification-consolidation-start-fixfrom
svv/ts-unification-recover-leader
Draft

fix(inkless:consolidation): recover a switched consolidated leader after local-log loss#653
viktorsomogyi wants to merge 1 commit into
svv/ts-unification-consolidation-start-fixfrom
svv/ts-unification-recover-leader

Conversation

@viktorsomogyi

Copy link
Copy Markdown
Contributor

A leader that comes up below the seal with an empty local log (a full local-storage wipe / disaster recovery where the controller, whose metadata survived, elects a replica that came back empty) has no peer to replicate the classic prefix from -- that prefix lives only in the remote tier. The ConsolidationReconciler now starts consolidation for such a leader (when remote storage is enabled) instead of retrying forever, so the fetcher lands below the diskless WAL start, hits OFFSET_MOVED_TO_TIERED_STORAGE, and rebuilds the leader-epoch cache and producer snapshot from remote.

…ter local-log loss

A leader that comes up below the seal with an empty local log (a full
local-storage wipe / disaster recovery where the controller, whose metadata
survived, elects a replica that came back empty) has no peer to replicate the
classic prefix from -- that prefix lives only in the remote tier. The
ConsolidationReconciler now starts consolidation for such a leader (when remote
storage is enabled) instead of retrying forever, so the fetcher lands below the
diskless WAL start, hits OFFSET_MOVED_TO_TIERED_STORAGE, and rebuilds the
leader-epoch cache and producer snapshot from remote.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

1 participant