Skip to content

Commit

Permalink
[FLINK-1669] [streaming] Test for streaming recovery from process fai…
Browse files Browse the repository at this point in the history
…lure

This closes #496
  • Loading branch information
mbalassi authored and StephanEwen committed Mar 29, 2015
1 parent d03dd63 commit 56afefc
Show file tree
Hide file tree
Showing 4 changed files with 701 additions and 385 deletions.
Expand Up @@ -158,6 +158,17 @@ public StreamExecutionEnvironment setParallelism(int parallelism) {
return this;
}

/**
* Sets the number of times that failed tasks are re-executed. A value of zero
* effectively disables fault tolerance. A value of {@code -1} indicates that the system
* default value (as defined in the configuration) should be used.
*
* @param numberOfExecutionRetries The number of times the system will try to re-execute failed tasks.
*/
public void setNumberOfExecutionRetries(int numberOfExecutionRetries) {
config.setNumberOfExecutionRetries(numberOfExecutionRetries);
}

/**
* Sets the maximum time frequency (milliseconds) for the flushing of the
* output buffers. By default the output buffers flush frequently to provide
Expand Down

0 comments on commit 56afefc

Please sign in to comment.