public static void doWrite(WAL wal, RegionInfo hri, TableName tableName, int columnCount,
    int recordCount, byte[] row, long timestamp, MultiVersionConcurrencyControl mvcc)
    throws IOException {
    for (int i = 0; i < recordCount; i++) {
      WAL.Entry entry = generateEdit(i, hri, tableName, row, columnCount, timestamp, mvcc);
      wal.appendData(hri, entry.getKey(), entry.getEdit());
    }
    wal.sync();
  }
Helper class for testing protobuf log.
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/ProtobufLogTestHelper.java