Record headers not passed to custom serde when deserializing key #634
Labels
area/serde
Serialization & Deserialization (plugins)
status/triage/completed
Automatic triage completed
status/triage/manual
Manual triage in progress
type/bug
Something isn't working
Issue submitter TODO list
main
-labeled docker image and the issue still persists thereDescribe the bug (actual behavior)
When ConsumerRecordDeserializer invoke Serde.Deserializer.deserialize, it pass in an empty list of RecordHeader instead of the actual RecordHeaders
var deserResult = keyDeserializer.deserialize(new RecordHeadersImpl(), rec.key().get())
My custom Serde require the record headers to find the encoding schema from our schema registry.
Expected behavior
ConsumerRecordDeserializer should pass the record headers to the deserialize function like what it does when deserializing values.
var deserResult = keyDeserializer.deserialize(new RecordHeadersImpl(rec.headers()), rec.key().get())
Your installation details
I reference the main branch code above:
kafka-ui/api/src/main/java/io/kafbat/ui/serdes/ConsumerRecordDeserializer.java
Line 81 in 0ad8695
Steps to reproduce
Problem should be obvious from the actual source code quoted above.
Screenshots
No response
Logs
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: