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

Correct offsets in nested message sets #458

Merged
merged 1 commit into from
Oct 31, 2017
Merged

Conversation

dasch
Copy link
Contributor

@dasch dasch commented Oct 30, 2017

Message sets are nested before compression. Kafka used to decompress and fix the offsets, but that no longer seems to happen, so the offsets are all wrong. We now calculate the correct offset based on the "container" message's offset and the contained message's position in the message
set.

Fixes #457.

@dasch dasch force-pushed the dasch/fix-nested-offsets branch 2 times, most recently from 2d1d4e0 to fadd2ff Compare October 30, 2017 15:56
Message sets are nested before compression. Kafka used to decompress and
fix the offsets, but that no longer seems to happen, so the offsets are
all wrong. We now calculate the correct offset based on the "container"
message's offset and the contained message's position in the message
set.
@dasch dasch force-pushed the dasch/fix-nested-offsets branch from fadd2ff to 42821e9 Compare October 31, 2017 12:51
@dasch dasch merged commit a7584cd into master Oct 31, 2017
@dasch dasch deleted the dasch/fix-nested-offsets branch October 31, 2017 14:01
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.

Infinite reprocessing of messages from Snappy compressed producer
1 participant