[
https://issues.apache.org/jira/browse/HBASE-8410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13875038#comment-13875038
]
Ted Yu commented on HBASE-8410:
-------------------------------
>From
>https://builds.apache.org/job/PreCommit-HBASE-Build/8456//testReport/org.apache.hadoop.hbase.namespace/TestNamespaceAuditor/testRegionOperations/
> :
{code}
2014-01-17 05:27:16,370 INFO [pool-1-thread-1]
namespace.TestNamespaceAuditor(163):
org.apache.hadoop.hbase.DoNotRetryIOException:
org.apache.hadoop.hbase.DoNotRetryIOException: The table
TestNamespaceAuditor_regiontest:table1 is not allowed to have 7 regions. The
total number of regions permitted is only 6, while current region count is 0.
This may be transient, please retry later if there are any ongoing split
operations in the namespace.
at
org.apache.hadoop.hbase.namespace.NamespaceAuditor.checkNamespaceTableCount(NamespaceAuditor.java:322)
at
org.apache.hadoop.hbase.namespace.NamespaceAuditor.preCreateTable(NamespaceAuditor.java:82)
at
org.apache.hadoop.hbase.master.MasterCoprocessorHost.preCreateTable(MasterCoprocessorHost.java:235)
at org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:1733)
at org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:1766)
at
org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:38221)
at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2008)
at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:92)
at
org.apache.hadoop.hbase.ipc.FifoRpcScheduler$1.run(FifoRpcScheduler.java:73)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
2014-01-17 05:27:16,371 DEBUG [pool-1-thread-1-EventThread]
hbase.ZKNamespaceStateManager(205): Updating namespace state cache from node
path /hbase/namespace-state/TestNamespaceAuditor_regiontest with data:
NamespaceTableAndRegionInfo [name=TestNamespaceAuditor_regiontest,
tableRegionInfoMap={}]
{code}
ZKNamespaceStateManager received notification 1 millisecond later than the
receipt of DoNotRetryIOException
Please handle this scenario accordingly.
> Basic quota support for namespaces
> ----------------------------------
>
> Key: HBASE-8410
> URL: https://issues.apache.org/jira/browse/HBASE-8410
> Project: HBase
> Issue Type: Sub-task
> Reporter: Francis Liu
> Assignee: Vandana Ayyalasomayajula
> Attachments: HBASE-8410_trunk_10.patch, HBASE-8410_trunk_10.patch,
> HBASE-8410_trunk_11.patch, HBASE-8410_trunk_12.patch,
> HBASE-8410_trunk_2.patch, HBASE-8410_trunk_3.patch, HBASE-8410_trunk_4.patch,
> HBASE-8410_trunk_4.patch, HBASE-8410_trunk_5.patch, HBASE-8410_trunk_6.patch,
> HBASE-8410_trunk_7.patch, HBASE-8410_trunk_8.patch, HBASE-8410_trunk_9.patch,
> HBASE_8410.patch, HBASE_8410_1_trunk.patch
>
>
> This task involves creating an observer which provides basic quota support to
> namespaces in terms of (1) number of tables and (2) number of regions. The
> quota support can be enabled by setting:
> <property>
> <name>hbase.coprocessor.region.classes</name>
> <value>org.apache.hadoop.hbase.namespace.NamespaceController</value>
> </property>
> <property>
> <name>hbase.coprocessor.master.classes</name>
> <value>org.apache.hadoop.hbase.namespace.NamespaceController</value>
> </property>
> in the hbase-site.xml.
> To add quotas to namespace, while creating namespace properties need to be
> added.
> Examples:
> 1. namespace_create 'ns1', {'hbase.namespace.quota.maxregion'=>'10'}
> 2. 1. namespace_create 'ns2', {'hbase.namespace.quota.maxtables'=>'2'},
> {'hbase.namespace.quota.maxregion'=>'5'}
> The quotas can be modified/added to namespace at any point of time.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)