protected void waitForReplication() throws Exception {
      // TODO: we shouldn't be sleeping here. It would be better to query the region servers
      // and wait for them to report 0 replication lag.
      Thread.sleep(generateVerifyGap * 1000);
    }
TODO: This is a work around on a replication bug (HBASE-13416) When we recreate a table
against that has recently been deleted, the contents of the logs are replayed even
though they should not. This ensures that we flush the logs before the table gets
deleted. Eventually the bug should be fixed and this should be removed.
hbase-it/src/test/java/org/apache/hadoop/hbase/test/IntegrationTestReplication.java