Repository navigation
Conversation
Group only consecutive same-table buckets within each leader request, and preserve their order through decoding, authorization, and delayed reads. Add regressions for interleaved tables, sustained backlog with a tiny fetch budget, ACL filtering, and delayed fetch ordering.
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
Linked issue: close #4784
Preserve the client's round-robin bucket order throughout fetch processing. With a small shared fetch budget, losing this order can allow continuously backlogged buckets to repeatedly consume the budget before other buckets are served.
Brief change log
Tests
Added:
The end-to-end test uses an empty bucket and two backlogged buckets from interleaved tables on the same leader. With a one-byte fetch budget, it verifies alternating progress over successive fetch rounds while both non-empty buckets remain backlogged.
Local validation completed on Java 11: 100 tests across eight focused test classes, with 98 passed and two existing disabled tests skipped. Spotless, Checkstyle, and license checks passed. The full project test suite was not run.
Mutation checks also confirmed that the regression tests fail when restoring either table-wide grouping with LinkedHashMap or unordered authorization filtering.
API and Format
No public API, protocol schema, or storage-format changes.
A request may contain multiple entries for the same table when its buckets are interleaved with another table's buckets. The existing repeated-field protocol and server decoder support this representation.
Documentation
No documentation changes.
Generative AI disclosure
Generative AI tools were used: OpenAI Codex.