ableegoldman commented on a change in pull request #10573:
URL: https://github.com/apache/kafka/pull/10573#discussion_r618911355



##########
File path: 
clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java
##########
@@ -642,9 +647,13 @@ public void beginTransaction() throws 
ProducerFencedException {
      *         to the partition leader. See the exception for more details
      * @throws KafkaException if the producer has encountered a previous fatal 
or abortable error, or for any
      *         other unexpected error
+     *
+     * @deprecated Since 3.0.0, will be removed in 4.0. Use {@link 
#sendOffsetsToTransaction(Map, ConsumerGroupMetadata)} instead.
      */
+    @Deprecated
     public void sendOffsetsToTransaction(Map<TopicPartition, 
OffsetAndMetadata> offsets,
                                          String consumerGroupId) throws 
ProducerFencedException {
+        log.warn("This method has been deprecated and will be removed in 4.0, 
please use #sendOffsetsToTransaction(Map, ConsumerGroupMetadata) instead");

Review comment:
       Oh I thought Ismael had said we were meant to do so during the KIP 
discussion, but I just re-read his message and I think he meant just for 
configs. I'll take this out




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to