@Override
  public int run(String[] args) throws Exception {
    TableName tableName;
    int rlen;
    int vlen;
    int rows;
    try {
      CommandLine cli = new DefaultParser().parse(OPTIONS, args);
      tableName = TableName.valueOf(cli.getOptionValue("t", TABLE_NAME));
      rlen = Integer.parseInt(cli.getOptionValue("rlen", String.valueOf(ROW_LENGTH)));
      vlen = Integer.parseInt(cli.getOptionValue("vlen", String.valueOf(VALUE_LENGTH)));
      rows = Integer.parseInt(cli.getOptionValue("r"));
    } catch (Exception e) {
      LOG.warn("Error parsing command line options", e);
      HelpFormatter formatter = new HelpFormatter();
      formatter.printHelp(getClass().getName(), OPTIONS);
      return -1;
    }
    exec(tableName, rlen, vlen, rows);
    return 0;
  }
A tool to evaluating the lag between primary replica and secondary replica.
<p/>
It simply adds a row to the primary replica, and then check how long before we can read it from
the secondary replica.
hbase-server/src/test/java/org/apache/hadoop/hbase/RegionReplicationLagEvaluation.java