-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FLINK-12009] Fix wrong check message about heartbeat interval for HeartbeatServices #8048
Conversation
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Review Progress
Please see the Pull Request Review Guide for a full explanation of the review process. The Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commandsThe @flinkbot bot supports the following commands:
|
@sunjincheng121 Can you review this PR? |
+1 |
@@ -40,7 +40,7 @@ | |||
|
|||
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 interval should be larger or equal than the heartbeat timeout."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the actual comparison, it looks like the second timeout
should be changed to interval
at the end of message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The heartbeat interval should be larger or equal than the heartbeat timeout
-> The heartbeat timeout should be larger or equal than the heartbeat interval
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -40,7 +40,7 @@ | |||
|
|||
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 interval should be larger or equal than the heartbeat timeout."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The heartbeat interval should be larger or equal than the heartbeat timeout
-> The heartbeat timeout should be larger or equal than the heartbeat interval
@azagrebin @sunjincheng121 Thanks for pointing the mistake and sorry for the late reply, I attended the Flink Forward SF 2019 and just come back today. I have updated the PR. |
…artbeatServices This closes apache#8048.
…al for HeartbeatServices This closes #8048.
…al for HeartbeatServices This closes #8048.
…al for HeartbeatServices This closes apache#8048.
…al for HeartbeatServices This closes apache#8048.
…al for HeartbeatServices This closes apache#8048.
What is the purpose of the change
This pull request fixes wrong check message about heartbeat interval for HeartbeatServices
Brief change log
Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (yes / no)Documentation