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


##########
clients/src/test/java/org/apache/kafka/clients/producer/KafkaProducerTest.java:
##########
@@ -1099,6 +1105,29 @@ private <T extends Serializer<String>> void 
doTestHeaders(Class<T> serializerCla
         producer.close(Duration.ofMillis(0));
     }
 
+    @SuppressWarnings("unchecked")
+    @Test
+    public void testHeadersFailure() {
+        Properties props = new Properties();
+        props.put(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, "localhost:9999");
+        props.put(ProducerConfig.MAX_BLOCK_MS_CONFIG, 500);

Review Comment:
   sure, dd79971e3d



##########
clients/src/test/java/org/apache/kafka/clients/producer/KafkaProducerTest.java:
##########
@@ -1099,6 +1105,29 @@ private <T extends Serializer<String>> void 
doTestHeaders(Class<T> serializerCla
         producer.close(Duration.ofMillis(0));
     }
 
+    @SuppressWarnings("unchecked")

Review Comment:
   yes, that was the reason. Thanks for the suggestion
   dd79971e3d



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