private boolean isWaiting() {
    Thread.State state = getState();
    return state == Thread.State.WAITING || state == Thread.State.TIMED_WAITING;
  }
@param encodedRegionName Encoded name of region to flush.
@param families          stores of region to flush.
hbase-server/src/main/java/org/apache/hadoop/hbase/wal/AbstractWALRoller.java