Skip to content

Commit

Permalink
[FLINK-12009][runtime] Fix wrong check message about heartbeat interv…
Browse files Browse the repository at this point in the history
…al for HeartbeatServices

This closes apache#8048.
  • Loading branch information
yanghua authored and sunjincheng121 committed Apr 9, 2019
1 parent 7236c75 commit dca64c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class HeartbeatServices {

public HeartbeatServices(long heartbeatInterval, long heartbeatTimeout) {
Preconditions.checkArgument(0L < heartbeatInterval, "The heartbeat interval must be larger than 0.");
Preconditions.checkArgument(heartbeatInterval <= heartbeatTimeout, "The heartbeat timeout should be larger or equal than the heartbeat timeout.");
Preconditions.checkArgument(heartbeatInterval <= heartbeatTimeout, "The heartbeat timeout should be larger or equal than the heartbeat interval.");

this.heartbeatInterval = heartbeatInterval;
this.heartbeatTimeout = heartbeatTimeout;
Expand Down

0 comments on commit dca64c2

Please sign in to comment.