You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Sakthi (JIRA)" <ji...@apache.org> on 2018/12/21 08:07:00 UTC

[jira] [Updated] (HBASE-21361) Disable printing of stack-trace in shell when quotas are not enabled

     [ https://issues.apache.org/jira/browse/HBASE-21361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sakthi updated HBASE-21361:
---------------------------
    Attachment: hbase-21361.master.001.patch

> Disable printing of stack-trace in shell when quotas are not enabled
> --------------------------------------------------------------------
>
>                 Key: HBASE-21361
>                 URL: https://issues.apache.org/jira/browse/HBASE-21361
>             Project: HBase
>          Issue Type: Sub-task
>          Components: shell
>            Reporter: Sakthi
>            Assignee: Sakthi
>            Priority: Minor
>         Attachments: hbase-21361.master.001.patch
>
>
> When user tries to access 'set_quota' with quota support not enabled, a 'Quota support not enabled' message should suffice. The current trace looks like this:
>  {noformat}
> hbase(main):009:0> set_quota TYPE => THROTTLE, TABLE => 't2', LIMIT => '10M/sec'
> ERROR: org.apache.hadoop.hbase.DoNotRetryIOException: java.lang.UnsupportedOperationException: quota support disabled
> 	at org.apache.hadoop.hbase.quotas.MasterQuotaManager.checkQuotaSupport(MasterQuotaManager.java:442)
> 	at org.apache.hadoop.hbase.quotas.MasterQuotaManager.setQuota(MasterQuotaManager.java:124)
> 	at org.apache.hadoop.hbase.master.MasterRpcServices.setQuota(MasterRpcServices.java:1593)
> 	at org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java)
> 	at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:413)
> 	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)
> Caused by: java.lang.UnsupportedOperationException: quota support disabled
> 	... 8 more
> {noformat}



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