Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-27269

The implementation of TestReplicationStatus.waitOnMetricsReport is incorrect

    XMLWordPrintableJSON

Details

    • 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

          Activity

            People

              heliangjun Liangjun He
              zhangduo Duo Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: