[ https://issues.apache.org/jira/browse/HBASE-27269?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Duo Zhang resolved HBASE-27269. ------------------------------- Fix Version/s: 2.5.0 3.0.0-alpha-4 2.4.14 Hadoop Flags: Reviewed Resolution: Fixed Pushed to branch-2.4+. Thanks [~heliangjun] for contributing! > 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)