Skip to content

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

Open
swuferhong wants to merge 3 commits 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 3 commits 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

@loserwang1024 loserwang1024 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have left some comment

Comment thread fluss-server/src/main/java/org/apache/fluss/server/RpcServiceBase.java Outdated
@swuferhong

Copy link
Copy Markdown
Contributor Author

@loserwang1024 comments addressed.

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

2 participants