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

Drop recursion in Fetcher _unpack_message_set #755

Merged
merged 3 commits into from
Jul 15, 2016

Conversation

dpkp
Copy link
Owner

@dpkp dpkp commented Jul 11, 2016

Attempt to simplify unpacking of compressed messages. Related to #718 -- KafkaConsumer no longer attempts to decompress more than a single layer of messages. If a message set was double-compressed by the producer, this patch will cause KafkaConsumer to return the compressed bytes as a single message for the entire batch. A warning will be logged, but otherwise the data will no longer appear "skipped", it will appear as corrupted. If the user wants to simply skip these messages, there is a new configuration parameter skip_double_compressed_messages

Longer term we should refactor Message / MessageSets to expose raw bytes and let handle_fetch_response unpack and decompress (this is how the java client operates)

@dpkp dpkp force-pushed the unrecurse_unpack_message_set branch from 5d2c792 to ed6098c Compare July 15, 2016 06:37
@dpkp dpkp merged commit a577053 into master Jul 15, 2016
@dpkp dpkp deleted the unrecurse_unpack_message_set branch January 17, 2017 17:54
jeffwidman added a commit that referenced this pull request Dec 13, 2018
This `skip_double_compressed_messages` flag was added in #755 in
order to fix #718.

However, grep'ing through the code, it looks like it this is no longer
used anywhere and doesn't do anything.

So removing it
jeffwidman added a commit that referenced this pull request Dec 13, 2018
This `skip_double_compressed_messages` flag was added in #755 in
order to fix #718.

However, grep'ing through the code, it looks like it this is no longer
used anywhere and doesn't do anything.

So removing it.
jeffwidman added a commit that referenced this pull request Jan 13, 2019
This `skip_double_compressed_messages` flag was added in #755 in
order to fix #718.

However, grep'ing through the code, it looks like it this is no longer
used anywhere and doesn't do anything.

So removing it.
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.

1 participant