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

Fix: skip reading from compacted records #1164

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

Conversation

niafly
Copy link

@niafly niafly commented Jul 14, 2023

We experience this issue when replaying messages from a compacted topic. For readMessageV2 we actually can receive a batch response with zero header count so this fix will skip the batch until it meet a non-empty one.

This is currently the fix that we applied to our local forked repository we're using now, but we expect to get this merged to get up-to-date with the origin public repository.

Fixes #874

@rhansen2
Copy link
Collaborator

Hi @niafly, thanks for submitting this PR, could you please include tests for these changes?

@azarakovskiy
Copy link

Hi @niafly do you have any plans to finish this?

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.

Panic when reading message from start of compacted topic
3 participants