Repository: hbase Updated Branches: refs/heads/master 837bb9ece -> 8b75e9ed9
HBASE-18101 Fix type mismatch on container access Signed-off-by: Michael Stack <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/8b75e9ed Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/8b75e9ed Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/8b75e9ed Branch: refs/heads/master Commit: 8b75e9ed91c0a6c100917d24cdb29e8a4b14390e Parents: 837bb9e Author: Amit Patel <[email protected]> Authored: Wed May 24 14:11:44 2017 -0700 Committer: Michael Stack <[email protected]> Committed: Wed May 24 19:59:16 2017 -0700 ---------------------------------------------------------------------- .../src/main/java/org/apache/hadoop/hbase/quotas/QuotaCache.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/8b75e9ed/hbase-server/src/main/java/org/apache/hadoop/hbase/quotas/QuotaCache.java ---------------------------------------------------------------------- diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/quotas/QuotaCache.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/quotas/QuotaCache.java index ad91617..d0e3f90 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/quotas/QuotaCache.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/quotas/QuotaCache.java @@ -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()); } }
