[
https://issues.apache.org/jira/browse/BEAM-7216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16833844#comment-16833844
]
Richard Moorhead commented on BEAM-7216:
----------------------------------------
Steps to reproduce:
1. Create a simple beam pipeline using beam-sdks-java-io-kafka 2.10; exclude
kafka-clients 1.0 and use kafka-clients 0.10.2.1
2. Create a topic and attempt to write records to it using KafkaIO.
3. Note failures at indicated code
> beam-sdks-java-io-kafka error with kafka brokers < 0.11
> -------------------------------------------------------
>
> Key: BEAM-7216
> URL: https://issues.apache.org/jira/browse/BEAM-7216
> Project: Beam
> Issue Type: Bug
> Components: io-java-kafka
> Affects Versions: 2.10.0, 2.11.0, 2.12.0
> Reporter: Richard Moorhead
> Priority: Minor
>
> In beam 2.9.0, KafkaRecordCoder was used for both producer/consumer records
> in KafkaIO, in version 2.10.0, ProducerRecordCoder was introduced but it
> appears that in the following code checks are not made to ensure kafka client
> compatibility:
> [https://github.com/apache/beam/blob/master/sdks/java/io/kafka/src/main/java/org/apache/beam/sdk/io/kafka/ProducerRecordCoder.java#L137]
> Specifically the method call to `headers` will fail for kafka clients < 0.11.
> Elsewhere in this class there are checks on ConsumerSpEL and it is proposed
> that they should be reused in the line referenced.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)