Skip to content

Conversation

@jjaakola-aiven
Copy link
Contributor

@jjaakola-aiven jjaakola-aiven commented Nov 5, 2025

The fetch path had two batch finds, one for the DelayedFetch.tryCompleteDiskless and seconds at DelayedFetch.onComplete.
Collect the batches at tryCompleteDiskless and reuse at onComplete. This reduces the database queries to batch coordinator.

The current code in main can have more batches at the onComplete as a new find batch query is run after the initial call at tryCompleteDiskless.

Comparisons to current main: 5875f03
On graphs the main is the left most run and right is from this PR.

Benchmark consumer fetch latency:
image

Find batches query time and rate:
image

Fetch rate:
image

@jjaakola-aiven jjaakola-aiven force-pushed the jjaakola-aiven-use-single-batch-find-on-fetch branch 4 times, most recently from 06062ae to 4dcecf1 Compare November 10, 2025 08:36
The fetch path had two batch finds, one for the DelayedFetch.tryCompleteDiskless
and seconds at DelayedFetch.onComplete.
Collect the batches at tryCompleteDiskless and reuse at onComplete.
This reduces the database queries to batch coordinator.
@jjaakola-aiven jjaakola-aiven force-pushed the jjaakola-aiven-use-single-batch-find-on-fetch branch from 4dcecf1 to 5945ae6 Compare November 10, 2025 08:54
@github-actions
Copy link

github-actions bot commented Feb 9, 2026

This PR is being marked as stale since it has not had any activity in 90 days. If you
would like to keep this PR alive, please leave a comment asking for a review. If the PR has
merge conflicts, update it with the latest from the base branch.

If you are having difficulty finding a reviewer, please reach out on the [mailing list](https://kafka.apache.org/contact).

If this PR is no longer valid or desired, please feel free to close it. If no activity occurs in the next 30 days, it will be automatically closed.

@github-actions github-actions bot added the stale label Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant