ruanhang1993 commented on code in PR #20164:
URL: https://github.com/apache/flink/pull/20164#discussion_r926303607
##########
flink-connectors/flink-connector-kafka/src/main/java/org/apache/flink/connector/kafka/sink/KafkaRecordSerializationSchema.java:
##########
@@ -48,6 +48,12 @@ default void open(
SerializationSchema.InitializationContext context,
KafkaSinkContext sinkContext)
throws Exception {}
+ /**
+ * Closes this kafka serialization schema and releases any system
resources associated with it.
+ * If the stream is already closed then invoking this method has no effect.
+ */
+ default void close() throws Exception {}
Review Comment:
> Shouldn't this be invoked by the source reader?
You are right. I'll invoke close method in the `KafkaWriter`'s close method.
--
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]