private void createTable(Admin admin, TableName tableName) throws IOException {
    TableDescriptor td = TableDescriptorBuilder.newBuilder(tableName)
      .setColumnFamily(ColumnFamilyDescriptorBuilder.of(FAMILY_NAME)).setRegionReplication(2)
      .build();
    admin.createTable(td);
  }
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