Skip to content

[server] Reject KV leader promotion under disk write lock#3539

Open
swuferhong wants to merge 1 commit into
apache:mainfrom
swuferhong:leader-migrate-failed
Open

[server] Reject KV leader promotion under disk write lock#3539
swuferhong wants to merge 1 commit into
apache:mainfrom
swuferhong:leader-migrate-failed

Conversation

@swuferhong

Copy link
Copy Markdown
Contributor

Purpose

Linked issue: close #3538

When a TabletServer is under data disk write protection, making a
primary-key table replica leader may download KV snapshots and consume
more local disk space. This can fill the disk during leader migration
and amplify failures when the cluster is already under high disk usage.

Reject new KV leader promotion with DISK_WRITE_LOCKED when the local
tablet server is write-locked. Log table leader promotion and idempotent
leader notifications are not affected.

Brief change log

Tests

API and Format

Documentation

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.

Primary-key table leader migration can amplify disk pressure under high disk usage

1 participant