Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-21360 Disable printing of stack-trace in shell for quotas
  3. HBASE-21362

Disable printing of stack-trace in shell when quotas are violated

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.0.0-alpha-1, 2.2.0
    • shell
    • Reviewed

    Description

      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:

      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)
      
      

      Attachments

        1. hbase-21362.master.003.patch
          1 kB
          Sakthi
        2. hbase-21362.master.002.patch
          1 kB
          Sakthi
        3. hbase-21362.master.001.patch
          1 kB
          Sakthi

        Activity

          People

            sakthi Sakthi
            sakthi Sakthi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: