private void updateQuotaFactors() {
      boolean hasTableQuotas = !tableQuotaCache.entrySet().isEmpty()
        || userQuotaCache.values().stream().anyMatch(UserQuotaState::hasTableLimiters);
      if (hasTableQuotas) {
        updateTableMachineQuotaFactors();
      } else {
        updateOnlyMachineQuotaFactors();
      }
    }
Update quota factors which is used to divide cluster scope quota into machine scope quota For
user/namespace/user over namespace quota, use [1 / RSNum] as machine factor. For table/user
over table quota, use [1 / TotalTableRegionNum * MachineTableRegionNum] as machine factor.
hbase-server/src/main/java/org/apache/hadoop/hbase/quotas/QuotaCache.java