Skip to content

Commit

Permalink
[FLINK-9546] Fix checking of heartbeatTimeoutIntervalMs in HeartbeatM…
Browse files Browse the repository at this point in the history
…onitor

This closes apache#6135.
  • Loading branch information
sihuazhou authored and tillrohrmann committed Aug 15, 2018
1 parent 020f329 commit 7d4fcae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ static class HeartbeatMonitor<O> implements Runnable {
this.scheduledExecutor = Preconditions.checkNotNull(scheduledExecutor);
this.heartbeatListener = Preconditions.checkNotNull(heartbeatListener);

Preconditions.checkArgument(heartbeatTimeoutIntervalMs >= 0L, "The heartbeat timeout interval has to be larger than 0.");
Preconditions.checkArgument(heartbeatTimeoutIntervalMs > 0L, "The heartbeat timeout interval has to be larger than 0.");
this.heartbeatTimeoutIntervalMs = heartbeatTimeoutIntervalMs;

lastHeartbeat = 0L;
Expand Down

0 comments on commit 7d4fcae

Please sign in to comment.