From commits-return-65351-archive-asf-public=cust-asf.ponee.io@hbase.apache.org Fri Jan 12 19:02:23 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 8E21A180621 for ; Fri, 12 Jan 2018 19:02:23 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 7DA4E160C33; Fri, 12 Jan 2018 18:02:23 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C2C3C160C20 for ; Fri, 12 Jan 2018 19:02:22 +0100 (CET) Received: (qmail 88405 invoked by uid 500); 12 Jan 2018 18:02:21 -0000 Mailing-List: contact commits-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list commits@hbase.apache.org Received: (qmail 88396 invoked by uid 99); 12 Jan 2018 18:02:21 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jan 2018 18:02:21 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id CA986DFB31; Fri, 12 Jan 2018 18:02:21 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: elserj@apache.org To: commits@hbase.apache.org Date: Fri, 12 Jan 2018 18:02:21 -0000 Message-Id: <69a6ed7f8a0c40b1a72367a4d1792d71@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/4] hbase git commit: HBASE-19775 hbase shell doesn't handle the exceptions that are wrapped in java.io.UncheckedIOException Repository: hbase Updated Branches: refs/heads/branch-2 f7fbc168a -> b66208073 refs/heads/master 8bbfcdda4 -> 057e80c16 HBASE-19775 hbase shell doesn't handle the exceptions that are wrapped in java.io.UncheckedIOException Signed-off-by: Josh Elser Signed-off-by: Michael Stack Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/b979487c Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/b979487c Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/b979487c Branch: refs/heads/branch-2 Commit: b979487cace818e59945d65bb37db399e777ab72 Parents: f7fbc16 Author: Sergey Soldatov Authored: Thu Jan 11 16:02:40 2018 -0800 Committer: Josh Elser Committed: Fri Jan 12 12:38:13 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/b979487c/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)