Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[server] Add negative cache for non-existent partition IDs in metadata requests#3511

Open
swuferhong wants to merge 1 commit into
apache:mainfrom
swuferhong:partition-not-exists-cache
Open

[server] Add negative cache for non-existent partition IDs in metadata requests#3511
swuferhong wants to merge 1 commit into
apache:mainfrom
swuferhong:partition-not-exists-cache

Conversation

@swuferhong

Copy link
Copy Markdown
Contributor

Purpose

Linked issue: close #3510

During hourly partition rotation, clients holding stale partition IDs repeatedly trigger
ZooKeeper lookups that always return "not found". This adds unnecessary pressure on ZK.
The negative cache eliminates these redundant queries by remembering the "not found" result
for a configurable TTL period.

Brief change log

Tests

API and Format

Documentation

@swuferhong swuferhong requested a review from loserwang1024 June 23, 2026 06:14
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.

[server] Repeated metadata requests for deleted partitions cause unnecessary ZooKeeper pressure

1 participant