You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Hudson (Jira)" <ji...@apache.org> on 2022/08/05 04:59:00 UTC
[jira] [Commented] (HBASE-27269) The implementation of TestReplicationStatus.waitOnMetricsReport is incorrect
[ https://issues.apache.org/jira/browse/HBASE-27269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17575568#comment-17575568 ]
Hudson commented on HBASE-27269:
--------------------------------
Results for branch branch-2.4
[build #402 on builds.a.o|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-2.4/402/]: (/) *{color:green}+1 overall{color}*
----
details (if available):
(/) {color:green}+1 general checks{color}
-- For more information [see general report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-2.4/402/General_20Nightly_20Build_20Report/]
(/) {color:green}+1 jdk8 hadoop2 checks{color}
-- For more information [see jdk8 (hadoop2) report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-2.4/402/JDK8_20Nightly_20Build_20Report_20_28Hadoop2_29/]
(/) {color:green}+1 jdk8 hadoop3 checks{color}
-- For more information [see jdk8 (hadoop3) report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-2.4/402/JDK8_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(/) {color:green}+1 jdk11 hadoop3 checks{color}
-- For more information [see jdk11 report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-2.4/402/JDK11_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(/) {color:green}+1 source release artifact{color}
-- See build output for details.
(/) {color:green}+1 client integration test{color}
> The implementation of TestReplicationStatus.waitOnMetricsReport is incorrect
> ----------------------------------------------------------------------------
>
> Key: HBASE-27269
> URL: https://issues.apache.org/jira/browse/HBASE-27269
> Project: HBase
> Issue Type: Bug
> Components: Replication, test
> Reporter: Duo Zhang
> Assignee: LiangJun He
> Priority: Major
> Fix For: 2.5.0, 3.0.0-alpha-4, 2.4.14
>
>
> {code}
> private List<ReplicationLoadSource> waitOnMetricsReport(int greaterThan, ServerName serverName)
> throws IOException {
> ClusterMetrics metrics = hbaseAdmin.getClusterMetrics(EnumSet.of(Option.LIVE_SERVERS));
> List<ReplicationLoadSource> list =
> metrics.getLiveServerMetrics().get(serverName).getReplicationLoadSourceList();
> while (list.size() <= greaterThan) {
> Threads.sleep(1000);
> }
> return list;
> }
> {code}
> Obviously the while loop is just a dummy one as the list will not be updated in the loop...
--
This message was sent by Atlassian Jira
(v8.20.10#820010)