Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.0.0-alpha-1
-
None
-
None
-
None
Description
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...
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; } ....