Skip to content
Open
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 @@ -1381,12 +1381,6 @@ public class Config extends ConfigBase {
@ConfField
public static boolean check_java_version = true;

/**
* it can't auto-resume routine load job as long as one of the backends is down
*/
@ConfField(mutable = true, masterOnly = true)
public static int max_tolerable_backend_down_num = 0;

/**
* a period for auto resume routine load
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,6 @@ public static boolean isNeedAutoSchedule(RoutineLoadJob jobRoutine) {
&& jobRoutine.pauseReason.getCode() != InternalErrorCode.MANUAL_PAUSE_ERR
&& jobRoutine.pauseReason.getCode() != InternalErrorCode.TOO_MANY_FAILURE_ROWS_ERR
&& jobRoutine.pauseReason.getCode() != InternalErrorCode.CANNOT_RESUME_ERR) {
int dead = deadBeCount();
if (dead > Config.max_tolerable_backend_down_num) {
if (LOG.isDebugEnabled()) {
LOG.debug("dead backend num {} is larger than config {}, "
+ "routine load job {} can not be auto rescheduled",
dead, Config.max_tolerable_backend_down_num, jobRoutine.id);
}
return false;
}

if (jobRoutine.latestResumeTimestamp == 0) { //the first resume
jobRoutine.latestResumeTimestamp = System.currentTimeMillis();
jobRoutine.autoResumeCount = 1;
Expand Down
Loading