[ 
https://issues.apache.org/jira/browse/HBASE-22012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16791300#comment-16791300
 ] 

Uma Maheswari commented on HBASE-22012:
---------------------------------------

When the table is getting Disabled,all the regions will be closed

+FileSystemUtilizationChore:+

Doesnot calculate the size of Region closed Regions.It does not report the 
regions of this table to Mater

+QuotaObserverChore+

hbase.master.quotas.region.report.retention.millis =10 minutes

It retains the report for 10 minutes

Then as the  regions space report for the table is not recieved,

 

In filterInsufficientlyReportedTables() method,

 
{noformat}
if (ratioReported < percentRegionsReportedThreshold) {
 if (LOG.isTraceEnabled()) {
 LOG.trace("Filtering " + table + " because " + reportedRegionsInQuota + " of " 
+
 numRegionsInTable + " regions were reported.");
 }
 tablesToRemove.add(table); //Disable_setquota_createtable1  is added to 
tablesToRemove{noformat}
 

 In chore method,

 
{code:java}
for (TableName tableInLimbo : tablesInLimbo) { // Disable_setquota_createtable1 
 is in tablesInLimbo
 final SpaceQuotaSnapshot currentSnapshot = 
tableSnapshotStore.getCurrentState(tableInLimbo);
 if (currentSnapshot.getQuotaStatus().isInViolation()) {
 if (LOG.isTraceEnabled()) {
 LOG.trace("Moving " + tableInLimbo + " out of violation because fewer region 
sizes were"
 + " reported than required.");
 }
 SpaceQuotaSnapshot targetSnapshot = new SpaceQuotaSnapshot(
 SpaceQuotaStatus.notInViolation(), currentSnapshot.getUsage(),
 currentSnapshot.getLimit());  //Disable_setquota_createtable1  moves to 
observance of Quota{code}
 

 

 

> Space Quota: Policy state is getting changed from disable to Observance after 
> sometime automatically.
> -----------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-22012
>                 URL: https://issues.apache.org/jira/browse/HBASE-22012
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Ajeet Rai
>            Priority: Minor
>
> pace Quota: Policy state is getting changed from disable to Observance after 
> sometime automatically.
> Steps:
> 1: Create a table with space quota policy as Disable
> 2: Put some data so that table state is in space quota violation
> 3: So observe that table state is in violation
> 4: Now wait for some time
> 5: Observe that after some time table state is changing to to Observance 
> however table is still disabled



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to