rich-c-shop commented on code in PR #17099:
URL: https://github.com/apache/kafka/pull/17099#discussion_r1747052310


##########
clients/src/test/java/org/apache/kafka/clients/producer/KafkaProducerTest.java:
##########
@@ -2397,7 +2399,15 @@ public ProducerRecord<byte[], byte[]> 
onSend(ProducerRecord<byte[], byte[]> reco
         }
 
         @Override
-        public void onAcknowledgement(RecordMetadata metadata, Exception 
exception) {
+        public void onAcknowledgement(RecordMetadata metadata, Exception 
exception, Headers headers) {
+            if (headers == null) {
+                return;
+            }
+            if (!(headers instanceof RecordHeaders)) {
+                return;
+            }
+            RecordHeaders recordHeaders = (RecordHeaders) headers;

Review Comment:
   
https://github.com/apache/kafka/commit/988c09f48135a4dc1ab7503cf6ed45ea115063fa



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to