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 17:16:27 UTC

hbase git commit: Revert "HBASE-13058-shell unknown table message update" Wrong patch!

Repository: hbase
Updated Branches:
  refs/heads/branch-1 6f81a0982 -> f938999ef


Revert "HBASE-13058-shell unknown table message update"
Wrong patch!

This reverts commit 6f81a0982a27a316e1a776dd0986b44fa183893e.


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

Branch: refs/heads/branch-1
Commit: f938999ef41a3e50823be28a342bc3f991bf315b
Parents: 6f81a09
Author: stack <st...@apache.org>
Authored: Tue Feb 24 08:16:00 2015 -0800
Committer: stack <st...@apache.org>
Committed: Tue Feb 24 08:16:00 2015 -0800

----------------------------------------------------------------------
 hbase-shell/src/main/ruby/shell/commands.rb | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/f938999e/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 bb69fd6..54fa204 100644
--- a/hbase-shell/src/main/ruby/shell/commands.rb
+++ b/hbase-shell/src/main/ruby/shell/commands.rb
@@ -95,8 +95,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
-          first_arg = args.first
-          raise "Unknown table #{first_arg}!"
+          str = java.lang.String.new("#{cause}")
+          raise "Unknown table #{str}!"
         end
         if cause.kind_of?(org.apache.hadoop.hbase.client.RetriesExhaustedWithDetailsException) then
           exceptions = cause.getCauses
@@ -105,10 +105,6 @@ 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