You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[release-1.0] Properly handle events without the data field (#1500)
* Properly handle events without data field
A valid CloudEvent in the CE binary protocol binding of Kafka
might be composed by only Headers.
KafkaConsumer doesn't call the deserializer if the value
is null.
That means that we get a record with a null value even though
the record is a valid CloudEvent.
This patch handles events without the data field properly
by creating the CloudEvent object from record headers, if
the above conditions apply.
Signed-off-by: Pierangelo Di Pilato <pdipilat@redhat.com>
* Make code simpler, handle exceptions, change method name
Signed-off-by: Pierangelo Di Pilato <pdipilat@redhat.com>
Co-authored-by: Pierangelo Di Pilato <pdipilat@redhat.com>
Copy file name to clipboardExpand all lines: data-plane/dispatcher/src/main/java/dev/knative/eventing/kafka/broker/dispatcher/impl/RecordDispatcherImpl.java
Copy file name to clipboardExpand all lines: data-plane/dispatcher/src/main/java/dev/knative/eventing/kafka/broker/dispatcher/impl/consumer/InvalidCloudEventInterceptor.java
0 commit comments