Skip to content

Do not send headers to old kafka servers#836

Merged
mar-kolya merged 2 commits into
masterfrom
mar-kolya/do-not-send-headers-to-old-kafka
May 17, 2019
Merged

Do not send headers to old kafka servers#836
mar-kolya merged 2 commits into
masterfrom
mar-kolya/do-not-send-headers-to-old-kafka

Conversation

@mar-kolya
Copy link
Copy Markdown
Contributor

Kafka message bundles with versions below 2 (e.d. 0.10) do not support
headers so do not inject them. Otherwise client gets really upset.

@mar-kolya mar-kolya requested a review from tylerbenson May 16, 2019 18:02
Kafka message bundles with versions below 2 (e.d. 0.10) do not support
headers so do not inject them. Otherwise client gets really upset.

This is how similar check is being done in Kafka client itself:
https://github.com/apache/kafka/blob/05fcfde8f69b0349216553f711fdfc3f0259c601/clients/src/main/java/org/apache/kafka/common/record/MemoryRecordsBuilder.java#L411-L412
@mar-kolya mar-kolya force-pushed the mar-kolya/do-not-send-headers-to-old-kafka branch from 0930ea2 to 55d7c2a Compare May 16, 2019 19:10
@mar-kolya mar-kolya force-pushed the mar-kolya/do-not-send-headers-to-old-kafka branch from 0ef35e3 to c02110a Compare May 17, 2019 15:22
@mar-kolya mar-kolya merged commit 6287e55 into master May 17, 2019
@mar-kolya mar-kolya deleted the mar-kolya/do-not-send-headers-to-old-kafka branch May 17, 2019 15:55
@tylerbenson tylerbenson added this to the 0.29.0 milestone May 29, 2019
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