public static byte[] getRowKey(final WALEventTrackerPayload payload) {
    String walName = payload.getWalName();
    // converting to string since this will help seeing the timestamp in string format using
    // hbase shell commands.
    String timestampStr = String.valueOf(payload.getTimeStamp());
    String walState = payload.getState();
    final String rowKeyStr = walName + DELIMITER + timestampStr + DELIMITER + walState;
    return Bytes.toBytes(rowKeyStr);
  }
Create rowKey: 1. We want RS name to be the leading part of rowkey so that we can query by RS
name filter. WAL name contains rs name as a leading part. 2. Timestamp when the event was
generated. 3. Add state of the wal. Combination of 1 + 2 + 3 is definitely going to create a
unique rowkey.
@param payload payload to process
@return rowKey byte[]
hbase-server/src/main/java/org/apache/hadoop/hbase/namequeues/WALEventTrackerTableAccessor.java