Skip to content

Commit

Permalink
[tests] Increase robustness of SimpleRecoveryITCase
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanEwen committed Apr 10, 2015
1 parent 211d0bd commit 36fcdae
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public void testRestartMultipleTimes() {
"localhost", cluster.getJobManagerRPCPort());

env.setParallelism(4);
env.setNumberOfExecutionRetries(3);
env.setNumberOfExecutionRetries(5);

env.generateSequence(1, 10)
.rebalance()
Expand Down Expand Up @@ -238,7 +238,7 @@ public Long reduce(Long value1, Long value2) {

private static class FailingMapper1<T> extends RichMapFunction<T, T> {

private static int failuresBeforeSuccess = 1;
private static volatile int failuresBeforeSuccess = 1;

@Override
public T map(T value) throws Exception {
Expand All @@ -253,7 +253,7 @@ public T map(T value) throws Exception {

private static class FailingMapper2<T> extends RichMapFunction<T, T> {

private static int failuresBeforeSuccess = 1;
private static volatile int failuresBeforeSuccess = 1;

@Override
public T map(T value) throws Exception {
Expand All @@ -268,7 +268,7 @@ public T map(T value) throws Exception {

private static class FailingMapper3<T> extends RichMapFunction<T, T> {

private static int failuresBeforeSuccess = 3;
private static volatile int failuresBeforeSuccess = 3;

@Override
public T map(T value) throws Exception {
Expand Down

0 comments on commit 36fcdae

Please sign in to comment.