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
* Kafka Message Header API
Motivation:
Be able to attach headers to a `KafkaProducerMessage` and read out
headers attached to a `KafkaConsumerMessage`.
Modifications:
* create new type `struct KafkaHeader` representing a key-value pair of
`String` key and `ByteBuffer` value
* add property `headers: [KafkaHeader]` to `KafkaConsumerMessage` and
`KafkaConsumerMessage`
* use `rd_kafka_produceva` (varidadic arguments) to produce messages as
`rd_kafka_produce` did not support setting message headers
* create helper class `RDKafkaUnsafeProducerMessage` that helps
configuring the varidadic argument array for `rd_kafka_produceva`
* add new test asserting that both producing and consuming messages with
message headers works
* Remove KafkaContiguousBytes TODOs
* Review Franz
Modifications:
* no copying of `KafkaProducerMessage` headers and values -> build
scoped accessor helper that recursively accesses all underlying
pointers of the `KafkaProducerMessage`'s `headers: [KafkaHeader]`
* only use `rd_kafka_produceva` when `message.headers.isEmpty == false`
* Review Franz: simplify recursion cases
0 commit comments