HBASE-18101 Fix type mismatch on container access

Signed-off-by: Michael Stack <stack@apache.org>
This commit is contained in:
Amit Patel 2017-05-24 14:11:44 -07:00 committed by Michael Stack
parent 837bb9ece7
commit 8b75e9ed91
1 changed files with 2 additions and 2 deletions

View File

@ -190,11 +190,11 @@ public class QuotaCache implements Stoppable {
// Prefetch online tables/namespaces
for (TableName table: QuotaCache.this.rsServices.getOnlineTables()) {
if (table.isSystemTable()) continue;
if (!QuotaCache.this.tableQuotaCache.contains(table)) {
if (!QuotaCache.this.tableQuotaCache.containsKey(table)) {
QuotaCache.this.tableQuotaCache.putIfAbsent(table, new QuotaState());
}
String ns = table.getNamespaceAsString();
if (!QuotaCache.this.namespaceQuotaCache.contains(ns)) {
if (!QuotaCache.this.namespaceQuotaCache.containsKey(ns)) {
QuotaCache.this.namespaceQuotaCache.putIfAbsent(ns, new QuotaState());
}
}