Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #874 #1292

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fixes #874 #1292

wants to merge 1 commit into from

Conversation

kf6nux
Copy link

@kf6nux kf6nux commented May 16, 2024

I stumbled across #874 and dug in.

The issue seems to be caused by the fact readMessageV2 expects a message to be present on the wire, but a compacted topic may return a "RecordBatch" with no records (when an offset gets compacted out).

The proposed fix loops reading additional headers when both RecordBatch is used ( i.e. magic number 2 ) and when the returned RecordBatch has zero records.

If the maintainers request any additional work, I'm happy to let someone else complete the work as I don't know when I'd be able to come back to this.

@kf6nux kf6nux marked this pull request as ready for review May 16, 2024 04:04
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.

None yet

1 participant