AHeise commented on a change in pull request #16701:
URL: https://github.com/apache/flink/pull/16701#discussion_r682587311



##########
File path: 
flink-core/src/main/java/org/apache/flink/api/connector/sink/Sink.java
##########
@@ -81,9 +83,17 @@
     /** Return the serializer of the writer's state type. */
     Optional<SimpleVersionedSerializer<WriterStateT>> 
getWriterStateSerializer();
 
+    /**
+     * A list of state names of sinks from which the state can be restored. 
For example, the new
+     * file sink can resume from the state of an old streaming file sink as a 
drop-in replacement
+     * when resuming from a checkpoint/savepoint.
+     */
+    default Collection<String> getCompatibleStateNames() {

Review comment:
       I consider it more of a bugfix ;)




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