Github user gyfora commented on a diff in the pull request: https://github.com/apache/flink/pull/812#discussion_r32091115 --- Diff: flink-staging/flink-streaming/flink-streaming-core/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java --- @@ -241,6 +241,31 @@ public StreamExecutionEnvironment enableCheckpointing(long interval) { streamGraph.setCheckpointingInterval(interval); return this; } + + /** + * Method for force-enabling fault-tolerance. Activates monitoring and + * backup of streaming operator states even for jobs containing iterations. + * + * Please note that the checkpoint/restore guarantees for iterative jobs are + * only best-effort at the moment. Records inside the loops may be lost + * during failure. + * <p/> + * <p/> + * Setting this option assumes that the job is used in production and thus + * if not stated explicitly otherwise with calling with the + * {@link #setNumberOfExecutionRetries(int numberOfExecutionRetries)} method + * in case of failure the job will be resubmitted to the cluster + * indefinitely. + * + * @param interval + * Time interval between state checkpoints in millis + */ + public StreamExecutionEnvironment enableCheckpointing(long interval, boolean force) { --- End diff -- I added a test for this
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---