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:
parent
f7fbc168a1
commit
b979487cac
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue