private boolean shouldSplitRegion(RegionInfo ri) {
    if (server.getNumberOfOnlineRegions() > 0.9 * regionSplitLimit) {
      LOG.warn("Total number of regions is approaching the upper limit " + regionSplitLimit + ". "
        + "Please consider taking a look at http://hbase.apache.org/book.html#ops.regionmgt");
    }
    return (regionSplitLimit > server.getNumberOfOnlineRegions()
      // Do not attempt to split secondary region replicas, as this is not allowed and our request
      // to do so will be rejected
      && ri.getReplicaId() == RegionInfo.DEFAULT_REPLICA_ID);
  }
Returns the current size of the queue containing regions that are processed.
@return The current size of the regions queue.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CompactSplit.java