Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-7216

beam-sdks-java-io-kafka error with kafka brokers < 0.11

Details

    • Bug
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • 2.10.0, 2.11.0, 2.12.0
    • 2.13.0
    • io-java-kafka
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              richard.moorhead Richard Moorhead
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m