private byte[] getRowKeyWithin(RegionInfo regionInfo) {
    byte[] rowKey;
    // region is start of table, find one after start key
    if (regionInfo.getStartKey().length == 0) {
      if (regionInfo.getEndKey().length == 0) {
        // doesn't matter, single region table
        return Bytes.toBytes(1);
      } else {
        // find a row just before endkey
        rowKey = Bytes.copy(regionInfo.getEndKey());
        rowKey[rowKey.length - 1]--;
        return rowKey;
      }
    } else {
      return regionInfo.getStartKey();
    }
  }
Tests that the logic in ServerRpcConnection works such that if the server is aborted, it short
circuits any other logic. This means we no longer even attempt to enqueue the request onto the
call queue. We verify this by using a special call queue which we can trigger to always return
CallQueueTooBigException. If the logic works, despite forcing those exceptions, we should not
see them.
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionServerRejectDuringAbort.java