Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix #913: If key is null, skip deserializing #914

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

Closed
wants to merge 1 commit into from
Closed

Fix #913: If key is null, skip deserializing #914

wants to merge 1 commit into from

Conversation

jeffwidman
Copy link
Contributor

Fix #913

I didn't test the JavaConsumer, but I suspect it skips null keys as it seems the most logical behavior.

I thought about adding this logic the message value processing as well, but I can't think of a scenario where you'd send a null message, versus it is realistic that you'd send a message with a null key.

Didn't have time to add tests yet.

@dpkp
Copy link
Owner

dpkp commented Dec 19, 2016

I'd rather keep the interface simple: deserializers are functions that receive bytes or None. I do not want to prevent users from specifying deserializers that transform None -> object, which would be the effect if we force skipping deserializer on None.

@jeffwidman
Copy link
Contributor Author

Makes sense.

@jeffwidman jeffwidman closed this Dec 19, 2016
@jeffwidman jeffwidman deleted the skip-deserialize-null-keys branch December 19, 2016 00:33
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.

2 participants