Skip to content

Commit

Permalink
log refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Andyz26 committed Dec 18, 2024
1 parent 4fb2608 commit 547a26d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1943,18 +1943,18 @@ public void checkHeartBeats(Instant currentTime) {
acceptedAt);
}
} else {
// no heartbeat or heartbeat too old
if (!workerMeta.getLastHeartbeatAt().isPresent() || Duration.between(workerMeta.getLastHeartbeatAt().get(), currentTime).getSeconds()
> missedHeartBeatToleranceSecs) {
// no heartbeat or heartbeat too old
this.numWorkerMissingHeartbeat.increment();

if (!workerMeta.getLastHeartbeatAt().isPresent()) {
LOGGER.info("Job {}, Worker {} hasn't received heartbeat, threshold {} exceeded",
LOGGER.warn("Job {}, Worker {} hasn't received heartbeat, threshold {} exceeded",
this.jobMgr.getJobId(),
workerMeta.getWorkerId(),
missedHeartBeatToleranceSecs);
} else {
LOGGER.info("Job {}, Worker {} Duration between last heartbeat and now {} "
LOGGER.warn("Job {}, Worker {} Duration between last heartbeat and now {} "
+ "missed heart beat threshold {} exceeded",
this.jobMgr.getJobId(),
workerMeta.getWorkerId(),
Expand Down

0 comments on commit 547a26d

Please sign in to comment.