Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
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; }
Obviously the while loop is just a dummy one as the list will not be updated in the loop...
Attachments
Issue Links
- links to