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

Ashish Singhi commented on HBASE-13357:
---------------------------------------

Thanks Srikanth for taking a look.

bq. It is a good practice to clean up the resources we've created towards the 
end of the test. Though this is not critical, it is more related to code 
hygiene. What say ?

If you look at cleanup api we are already doing it.
{code}
for (HTableDescriptor table : ADMIN.listTables()) {
    ADMIN.disableTable(table.getTableName());
    deleteTable(table.getTableName());
  }
  for (NamespaceDescriptor ns : ADMIN.listNamespaceDescriptors()) {
    if (ns.getName().startsWith(prefix)) {
      ADMIN.deleteNamespace(ns.getName());
    }
  }
{code}

> If maxTables/maxRegions exceeds quota in a namespace, throw 
> QuotaExceededException
> ----------------------------------------------------------------------------------
>
>                 Key: HBASE-13357
>                 URL: https://issues.apache.org/jira/browse/HBASE-13357
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>            Reporter: Ashish Singhi
>            Assignee: Ashish Singhi
>            Priority: Minor
>              Labels: quota
>             Fix For: 2.0.0
>
>         Attachments: HBASE-13357.patch
>
>
> If maximum number of tables or regions count exceeds in a namespace we are 
> throwing DoNotRetryIOException instead we should throw QuotaExceededException.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to