Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Since Kafka transactions protocol is has been improved by throught KIP-447: Producer scalability for exactly once semantics and Kafka Streams has already onbarded adopted eos-v2 by KIP-732: Deprecate eos-alpha and replace eos-beta with eos-v2 we should also now drop support for the legacy transactions protocol (without which doesn't use Consumer Group generation id and member id) in Kafka Producer.

Present API informs developers that they should avoid legacy protocol by marking void sendOffsetsToTransaction(Map<TopicPartition,OffsetAndMetadata> offsets, String consumerGroupId) depracated deprecated, but still developers can easily use a non depreacated method void sendOffsetsToTransaction(Map<TopicPartition,OffsetAndMetadata> offsets, ConsumerGroupMetadata groupMetadata) and pass there ConsumerGroupMetadata instance created by hand using non deprecated constructor.

...