public void checkQuotaToSplitRegion(RegionInfo hri) throws IOException {
    if (!stateManager.isInitialized()) {
      throw new IOException(
        "Split operation is being performed even before namespace auditor is initialized.");
    } else if (
      !stateManager.checkAndUpdateNamespaceRegionCount(hri.getTable(), hri.getRegionName(), 1)
    ) {
      throw new QuotaExceededException("Region split not possible for :" + hri.getEncodedName()
        + " as quota limits are exceeded ");
    }
  }
Get region count for table
@param tName - table name
@return cached region count, or -1 if table status not found
@throws IOException Signals that the namespace auditor has not been initialized
hbase-server/src/main/java/org/apache/hadoop/hbase/namespace/NamespaceAuditor.java