flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gyfora <...@git.apache.org>
Subject [GitHub] flink pull request: [streaming] Allow force-enabling checkpoints f...
Date Wed, 10 Jun 2015 05:58:56 GMT
Github user gyfora commented on a diff in the pull request:

    https://github.com/apache/flink/pull/812#discussion_r32090193
  
    --- 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 --
    
    ah you are right , fixing


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message