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

Signed-off-by: Josh Elser <elserj@apache.org>
Signed-off-by: Michael Stack <stack@apache.org>
This commit is contained in:
Sergey Soldatov 2018-01-11 16:02:40 -08:00 committed by Josh Elser
parent f7fbc168a1
commit b979487cac
1 changed files with 1 additions and 0 deletions

View File

@ -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)