From fcd0a14f831164d2a46a6d0f0d0abd3e5000a1f8 Mon Sep 17 00:00:00 2001 From: Sakthi Date: Fri, 21 Dec 2018 11:04:47 -0800 Subject: [PATCH] HBASE-21362: Disable printing of stack-trace in shell when quotas are violated --- hbase-shell/src/main/ruby/shell/commands.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hbase-shell/src/main/ruby/shell/commands.rb b/hbase-shell/src/main/ruby/shell/commands.rb index d60d07cc04ebb3e93d38593d36d741ccc6de9612..9e2b301352265bd5a27f06fd3f23279aeaf0e35e 100644 --- a/hbase-shell/src/main/ruby/shell/commands.rb +++ b/hbase-shell/src/main/ruby/shell/commands.rb @@ -169,6 +169,10 @@ module Shell strs = str.split("\n") raise (strs[0]).to_s unless strs.empty? end + if cause.is_a?(org.apache.hadoop.hbase.quotas.SpaceLimitingException) + strs = cause.message.split("\n") + raise(strs[0]).to_s unless strs.empty? + end # Throw the other exception which hasn't been handled above raise cause -- 2.17.2 (Apple Git-113)