-
Notifications
You must be signed in to change notification settings - Fork 3.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
HBASE-27269 The implementation of TestReplicationStatus.waitOnMetricsReport is incorrect #4678
Conversation
…Report is incorrect
🎊 +1 overall
This message was automatically generated. |
@@ -139,6 +139,7 @@ private List<ReplicationLoadSource> waitOnMetricsReport(int greaterThan, ServerN | |||
metrics.getLiveServerMetrics().get(serverName).getReplicationLoadSourceList(); | |||
while (list.size() <= greaterThan) { | |||
Threads.sleep(1000); | |||
list = metrics.getLiveServerMetrics().get(serverName).getReplicationLoadSourceList(); |
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.
This is still incorrect...
We need to call hbaseAdmin.getClusterMetrics every time when checking...
And here we'd better use the waitFor method to limit the max wait time?
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.
Thanks for the review. @Apache9
Sorry, I made an obvious mistake.
…Report is incorrect
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
…Report is incorrect (#4678) Signed-off-by: Duo Zhang <[email protected]> (cherry picked from commit 2dc2608)
…Report is incorrect (#4678) Signed-off-by: Duo Zhang <[email protected]> (cherry picked from commit 2dc2608)
…Report is incorrect (#4678) Signed-off-by: Duo Zhang <[email protected]> (cherry picked from commit 2dc2608)
…Report is incorrect (apache#4678) Signed-off-by: Duo Zhang <[email protected]> (cherry picked from commit 2dc2608) (cherry picked from commit 1183f06) Change-Id: Ic6898a0b9cfc6ef9da75c066687a8ac09ea8d58e
https://issues.apache.org/jira/browse/HBASE-27269