private void putDataWithFlushes(HRegion region, int flushInterval, int numRows,
    int numRowsAfterFlush) throws IOException {
    int start = 0;
    for (; start < numRows; start += flushInterval) {
      LOG.info("-- Writing some data to primary from " + start + " to " + (start + flushInterval));
      putData(region, Durability.SYNC_WAL, start, flushInterval, cq, families);
      LOG.info("-- Flushing primary, creating 3 files for 3 stores");
      region.flush(true);
    }
    LOG.info("-- Writing some more data to primary, not flushing");
    putData(region, Durability.SYNC_WAL, start, numRowsAfterFlush, cq, families);
  }
Puts a total of numRows + numRowsAfterFlush records indexed with numeric row keys. Does a flush
every flushInterval number of records. Then it puts numRowsAfterFlush number of more rows but
does not execute flush after
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestHRegionReplayEvents.java