Repository navigation
[server] Restore ZooKeeper batch read compatibility - #5129
Merged
wuchong merged 6 commits intoNov 10, 2026
Merged
Conversation
platinumhamburg
marked this pull request as ready for review
November 10, 2026 07:26
swuferhong
self-requested a review
November 10, 2026 07:30
cctvzd7
reviewed
Nov 10, 2026
wuchong
reviewed
Nov 10, 2026
platinumhamburg
force-pushed
the
fix-empty-partition-assignment
branch
from
November 10, 2026 13:38
2cf7a07 to
ca889a4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Closes #5128.
Restore the shared ZooKeeper batch read behavior from before #4029 so empty partition assignment ZNodes allow Coordinator initialization to continue. Keep the stricter error policy required by
describeBucketswithin its read path.Brief change log
processGetDataResponses()for table assignment, partition assignment, and LeaderAndIsr batch reads.DescribeBucketsMetadataReaderfordescribeBuckets, using the existing ZooKeeper batch request and strict response handling utilities.BucketMetadatafield construction between the existing reads and the describe reader.describeBucketsmetadata fields and read failures for partitioned and non-partitioned tables.Tests
testPartitionAssignmentsWithEmptyNodefails on the original implementation withNo content to map due to end-of-input../mvnw -pl fluss-server -am -Dtest=ZooKeeperClientTest,RpcServiceBaseTest,ZkBasedMetadataProviderTest -Dsurefire.failIfNoSpecifiedTests=false verifyon Java 11. All 45 tests passed in both configured test phases, together with Checkstyle, Spotless, and license checks.API and Format
Existing assignment and LeaderAndIsr batch reads log and omit empty data or unsuccessful node responses.
describeBucketsuses its dedicated reader, which ignores expected missing nodes and propagates other ZooKeeper errors to the RPC layer. Non-empty malformed assignment data raises a decoding error in both paths.Documentation
The linked issue documents the startup failure and reproduction steps.