From e05b71950fea92a01c2bdf25075acfc47d492735 Mon Sep 17 00:00:00 2001 From: Sakthi Date: Thu, 20 Dec 2018 02:27:13 -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..5a40c68712664cf396e181dbef000d9b5f10ddb5 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)