pankaj72981 commented on a change in pull request #559: HBASE-22944 Space 
Quota: TableNotFoundException: hbase:quota is thrown when region server is 
restarted.
URL: https://github.com/apache/hbase/pull/559#discussion_r326844642
 
 

 ##########
 File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/quotas/SpaceQuotaRefresherChore.java
 ##########
 @@ -74,6 +76,13 @@ public 
SpaceQuotaRefresherChore(RegionServerSpaceQuotaManager manager, Connectio
   @Override
   protected void chore() {
     try {
+      // check whether quotaTable is present or not.
+      if (!quotaTablePresent && !checkQuotaTableExists()) {
+        LOG.info("Quota table not found, skipping quota manager cache 
refresh.");
+        return;
+      }
+      // since quotaTable is present so setting the flag as true.
+      quotaTablePresent = true;
 
 Review comment:
   Better we move flag setting inside checkQuotaTableExists().

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to