You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2018/01/15 07:41:16 UTC

[17/27] hbase git commit: HBASE-19775 hbase shell doesn't handle the exceptions that are wrapped in java.io.UncheckedIOException

HBASE-19775 hbase shell doesn't handle the exceptions that are wrapped in java.io.UncheckedIOException

Signed-off-by: Josh Elser <el...@apache.org>
Signed-off-by: Michael Stack <st...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/6bacb643
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/6bacb643
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/6bacb643

Branch: refs/heads/HBASE-19064
Commit: 6bacb643bc66b994c386b7fd175664802047eef7
Parents: 8bbfcdd
Author: Sergey Soldatov <ss...@apache.org>
Authored: Thu Jan 11 16:02:40 2018 -0800
Committer: Josh Elser <el...@apache.org>
Committed: Fri Jan 12 12:50:15 2018 -0500

----------------------------------------------------------------------
 hbase-shell/src/main/ruby/shell/commands.rb | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/6bacb643/hbase-shell/src/main/ruby/shell/commands.rb
----------------------------------------------------------------------
diff --git a/hbase-shell/src/main/ruby/shell/commands.rb b/hbase-shell/src/main/ruby/shell/commands.rb
index 1b8de9e..990e978 100644
--- a/hbase-shell/src/main/ruby/shell/commands.rb
+++ b/hbase-shell/src/main/ruby/shell/commands.rb
@@ -108,6 +108,7 @@ module Shell
         yield
       rescue => cause
         # let individual command handle exceptions first
+        cause = cause.getCause if cause.is_a? java.io.UncheckedIOException
         handle_exceptions(cause, *args) if respond_to?(:handle_exceptions)
         # Global HBase exception handling below if not handled by respective command above
         if cause.is_a?(org.apache.hadoop.hbase.TableNotFoundException)