dawidwys commented on a change in pull request #18024:
URL: https://github.com/apache/flink/pull/18024#discussion_r765488499



##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/jobgraph/SavepointConfigOptions.java
##########
@@ -46,4 +46,14 @@
                     .withDescription(
                             "Allow to skip savepoint state that cannot be 
restored. "
                                     + "Allow this if you removed an operator 
from your pipeline after the savepoint was triggered.");
+    /**
+     * Describes the mode how Flink should restore from the given savepoint or 
retained checkpoint.
+     */
+    public static final ConfigOption<RestoreMode> RESTORE_MODE =
+            key("execution.savepoint-restore-mode")
+                    .enumType(RestoreMode.class)
+                    .defaultValue(RestoreMode.NO_CLAIM)
+                    .withDescription(
+                            "Describes the mode how Flink should restore from 
the given"
+                                    + " savepoint or retained checkpoint.");

Review comment:
       side note: Personally, I am not 100% convinced we should have the 
`LEGACY` mode in the final version (once we add proper `NO_CLAIM` mode). We 
might remove it in the end, however I want to add it for now to have the master 
branch releasable at all times.




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