[
https://issues.apache.org/jira/browse/HBASE-21362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16729245#comment-16729245
]
Sakthi commented on HBASE-21362:
--------------------------------
The shell looks like this after the patch.
{noformat}
# -----------------------SPACE QUOTA
hbase(main):013:0> put 't2','r','cf:col','val'
ERROR: NO_WRITES Puts are disallowed due to a space quota.
For usage try 'help "put"'
Took 0.0017 seconds
# -----------------------THROTTLE QUOTA
hbase(main):008:0> scan 't2'
ROW COLUMN+CELL
ERROR: Number of read requests exceeded - wait 12sec
For usage try 'help "scan"'
Took 8.2191 seconds
hbase(main):003:0> put 't2','r','cf:col','value'
ERROR: Request size limit exceeded - wait 1hrs, 39mins, 0sec
For usage try 'help "put"'
Took 8.2057 seconds
{noformat}
> Disable printing of stack-trace in shell when quotas are violated
> -----------------------------------------------------------------
>
> Key: HBASE-21362
> URL: https://issues.apache.org/jira/browse/HBASE-21362
> Project: HBase
> Issue Type: Sub-task
> Components: shell
> Reporter: Sakthi
> Assignee: Sakthi
> Priority: Minor
> Attachments: hbase-21362.master.001.patch,
> hbase-21362.master.002.patch, hbase-21362.master.003.patch
>
>
> When quotas are violated, a 'Quota violated on #table. Due to
> #ViolationPolicy, #Action is not allowed' message should suffice. The current
> trace in shell looks like this:
> {noformat}
> hbase(main):009:0> put 't2','r1','cf1:c','val'
> ERROR: org.apache.hadoop.hbase.quotas.SpaceLimitingException: NO_WRITES Puts
> are disallowed due to a space quota.
> at
> org.apache.hadoop.hbase.quotas.policies.NoWritesViolationPolicyEnforcement.check(NoWritesViolationPolicyEnforcement.java:46)
> at
> org.apache.hadoop.hbase.regionserver.RSRpcServices.mutate(RSRpcServices.java:2779)
> at
> org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:42000)
> at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:409)
> at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:130)
> at
> org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:324)
> at
> org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:304)
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)