Yiran Wu created HBASE-22931:
--------------------------------

             Summary: SpaceQuotas- Hbase:meta is too busy when space quotas are 
turned on.
                 Key: HBASE-22931
                 URL: https://issues.apache.org/jira/browse/HBASE-22931
             Project: HBase
          Issue Type: Improvement
    Affects Versions: 3.0.0
            Reporter: Yiran Wu


 In a large cluster, there are many tables and regions.  META tables will be 
scanned frequently after opening space quota. We need optimize it to support 
larger cluster.

some code...
{code:java}
for (TableName table : Iterables.concat(tablesWithTableQuotas, 
          tablesWithNamespaceQuotas)) {
        // Don't recompute a table we've already computed
        if (tablesToRemove.contains(table)) {
          continue;
        }
        final int numRegionsInTable = getNumRegions(table);
        // If the table doesn't exist (no regions), bail out.
        if (numRegionsInTable == 0) {
          if (LOG.isTraceEnabled()) {
            LOG.trace("Filtering " + table + " because no regions were 
reported");
          }
          tablesToRemove.add(table);
          continue;
        }
    ....
{code}




--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to