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

New kafka-pubsub Avro serializer doesn't handle NULL messages #3387

Closed
passuied opened this issue Mar 29, 2024 · 1 comment
Closed

New kafka-pubsub Avro serializer doesn't handle NULL messages #3387

passuied opened this issue Mar 29, 2024 · 1 comment
Labels
kind/bug Something isn't working

Comments

@passuied
Copy link
Contributor

Expected Behavior

NULL message values are perfectly valid messages (aka tombstone messages). The latest change adding support for Avro serialization/deserialization didn't account for null values which shouldn't tried to be serialized/deserialized...

Actual Behavior

Currently, when publishing/consuming a message with NULL value, it will fail with value is too short.

Steps to Reproduce the Problem

  • Topic with messages in Avro format
  • Subscription with metadata set to valueSchemaType=Avro
  • Messages in topic with NULL message values

Release Note

RELEASE NOTE: FIX Bug in kafka-pubsub component when "valueSchemaType": "Avro" and messages consumed have NULL value or when publishing messages with NULL value .

@passuied
Copy link
Contributor Author

passuied commented Apr 1, 2024

Bug fixed and merged to 1.13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant