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

Send null messages to kafka avro deserializer #672

Conversation

shirbr
Copy link
Contributor

@shirbr shirbr commented Apr 14, 2019

Hi Secor community!
We are using Secor for Avro messages with tombstone messaging - meaning we have null values in kafka (for more information: https://debezium.io/blog/tags/smt/#delete_records).
kafka-avro-serializer handles null as payload, so no problem there. The problem we are facing is that Secor converts null values into an empty byte array. In such cases, kafka-avro-serializer is trying to deserialize the data and we get "Error deserializing Avro message" as it is an empty byte array.

We fixed this issue by passing a null value to the serializer, and we now use the serializer results only if they are not null.

We would sincerely appreciate your assistance with this.

@HenryCaiHaiying HenryCaiHaiying merged commit 985eccc into pinterest:master Apr 14, 2019
@HenryCaiHaiying
Copy link
Contributor

Looks fine.

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