Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public class SimpleRecoveryFailureRateStrategyITBase extends SimpleRecoveryITCas
@ClassRule
public static final MiniClusterWithClientResource MINI_CLUSTER_RESOURCE = new MiniClusterWithClientResource(
new MiniClusterResourceConfiguration.Builder()
.setConfiguration(getConfiguration())
.setNumberTaskManagers(2)
.setNumberSlotsPerTaskManager(2)
.build());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ public Long reduce(Long value1, Long value2) {
catch (Exception e) {
e.printStackTrace();
fail(e.getMessage());
} finally {
FailingMapper1.failuresBeforeSuccess = 1;
}
}

Expand Down Expand Up @@ -158,6 +160,8 @@ public Long reduce(Long value1, Long value2) {
catch (Exception e) {
e.printStackTrace();
fail(e.getMessage());
} finally {
FailingMapper2.failuresBeforeSuccess = 1;
}
}

Expand Down Expand Up @@ -194,6 +198,8 @@ public Long reduce(Long value1, Long value2) {
catch (Exception e) {
e.printStackTrace();
fail(e.getMessage());
} finally {
FailingMapper3.failuresBeforeSuccess = 3;
}
}

Expand Down