You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "LiangJun He (Jira)" <ji...@apache.org> on 2022/08/04 05:48:00 UTC
[jira] [Assigned] (HBASE-27269) The implementation of TestReplicationStatus.waitOnMetricsReport is incorrect
[ https://issues.apache.org/jira/browse/HBASE-27269?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
LiangJun He reassigned HBASE-27269:
-----------------------------------
Assignee: LiangJun He
> 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
>
> {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)