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


##########
flink-connector-kafka/src/main/java/org/apache/flink/connector/kafka/sink/KafkaRecordSerializationSchema.java:
##########
@@ -53,6 +53,12 @@ default void open(
             SerializationSchema.InitializationContext context, 
KafkaSinkContext sinkContext)
             throws Exception {}
 
+    /**
+     * Closes this schema and releases any resources acquired in {@link 
#open}. It is called when
+     * the writer is closed. Calling it on an already closed schema must have 
no effect.

Review Comment:
   Thanks for pointing it out, I've moved the SerializationSchema init out of 
the constructor and to the Writer's own initialization method, please take a 
look.



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