varkey98 commented on code in PR #355:
URL: 
https://github.com/apache/flink-connector-kafka/pull/355#discussion_r4703373489


##########
flink-connector-kafka/src/test/java/org/apache/flink/connector/kafka/sink/KafkaWriterITCase.java:
##########
@@ -120,6 +124,78 @@ public void 
testIncreasingRecordBasedCounters(DeliveryGuarantee guarantee) throw
         }
     }
 
+    @ParameterizedTest
+    @EnumSource(
+            value = DeliveryGuarantee.class,
+            names = {"AT_LEAST_ONCE", "EXACTLY_ONCE"})
+    public void 
testRecordSerializerIsOpenedAndClosedOnceWithWriter(DeliveryGuarantee guarantee)
+            throws Exception {
+        final LifecycleRecordSerializer serializer = new 
LifecycleRecordSerializer(topic, false);
+        final KafkaWriter<Integer> writer =

Review Comment:
   Thanks, makes sense, moved to try-with-resources pattern



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