make TaskMonitor continue to monitor in the face of transient errors (#8625)

This commit is contained in:
Himanshu 2019-10-04 09:42:20 -07:00 committed by Fangjin Yang
parent f0d74b240d
commit d91d1c8699
1 changed files with 3 additions and 1 deletions

View File

@ -164,8 +164,10 @@ public class TaskMonitor<T extends Task>
}
}
catch (Throwable t) {
// Note that we only log the message here so that task monitoring continues to happen or else
// the task which created this monitor will keep on waiting endlessly assuming monitored tasks
// are still running.
log.error(t, "Error while monitoring");
throw t;
}
},
taskStatusCheckingPeriod,