You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2015/02/24 07:45:51 UTC
hbase git commit: HBASE-13058-shell unknown table message update
Repository: hbase
Updated Branches:
refs/heads/master 70412d886 -> 977d65a81
HBASE-13058-shell unknown table message update
Signed-off-by: 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/977d65a8
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/977d65a8
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/977d65a8
Branch: refs/heads/master
Commit: 977d65a81cc86d3d970878f74e11a7e1869de7f3
Parents: 70412d8
Author: Abhishek Kumar <ab...@huawei.com>
Authored: Fri Feb 20 11:04:46 2015 +0530
Committer: stack <st...@apache.org>
Committed: Mon Feb 23 22:45:43 2015 -0800
----------------------------------------------------------------------
hbase-shell/src/main/ruby/shell/commands.rb | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/977d65a8/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 2128164..4602db6 100644
--- a/hbase-shell/src/main/ruby/shell/commands.rb
+++ b/hbase-shell/src/main/ruby/shell/commands.rb
@@ -103,8 +103,8 @@ module Shell
# Get the special java exception which will be handled
cause = e.cause
if cause.kind_of?(org.apache.hadoop.hbase.TableNotFoundException) then
- str = java.lang.String.new("#{cause}")
- raise "Unknown table #{str}!"
+ first_arg = args.first
+ raise "Unknown table #{first_arg}!"
end
if cause.kind_of?(org.apache.hadoop.hbase.client.RetriesExhaustedWithDetailsException) then
exceptions = cause.getCauses
@@ -113,6 +113,10 @@ module Shell
valid_cols = table(args.first).get_all_columns.map { |c| c + '*' }
raise "Unknown column family! Valid column names: #{valid_cols.join(", ")}"
end
+ if exception.kind_of?(org.apache.hadoop.hbase.TableNotFoundException) then
+ first_arg = args.first
+ raise "Unknown table #{first_arg}!"
+ end
end
end
if cause.kind_of?(org.apache.hadoop.hbase.TableExistsException) then