You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ps...@apache.org on 2019/08/19 16:22:16 UTC

[hbase] branch master updated: HBASE-22875 TestShell and TestAdminShell2 are broken

This is an automated email from the ASF dual-hosted git repository.

psomogyi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/master by this push:
     new 46abaef  HBASE-22875 TestShell and TestAdminShell2 are broken
46abaef is described below

commit 46abaef4be220bcfb554052b984ed8ad570535b2
Author: Duo Zhang <zh...@apache.org>
AuthorDate: Sun Aug 18 21:54:57 2019 +0800

    HBASE-22875 TestShell and TestAdminShell2 are broken
---
 hbase-shell/src/main/ruby/shell/commands/list_snapshots.rb       | 2 +-
 hbase-shell/src/main/ruby/shell/commands/list_table_snapshots.rb | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/hbase-shell/src/main/ruby/shell/commands/list_snapshots.rb b/hbase-shell/src/main/ruby/shell/commands/list_snapshots.rb
index 1b3b8f2..6a17399 100644
--- a/hbase-shell/src/main/ruby/shell/commands/list_snapshots.rb
+++ b/hbase-shell/src/main/ruby/shell/commands/list_snapshots.rb
@@ -39,7 +39,7 @@ EOF
         list = admin.list_snapshot(regex)
         list.each do |snapshot|
           creation_time = Time.at(snapshot.getCreationTime / 1000).to_s
-          formatter.row([snapshot.getName, snapshot.getTable + ' (' + creation_time + ')'])
+          formatter.row([snapshot.getName, snapshot.getTableNameAsString + ' (' + creation_time + ')'])
         end
 
         formatter.footer(list.size)
diff --git a/hbase-shell/src/main/ruby/shell/commands/list_table_snapshots.rb b/hbase-shell/src/main/ruby/shell/commands/list_table_snapshots.rb
index 558fda8..b3bb2ca 100644
--- a/hbase-shell/src/main/ruby/shell/commands/list_table_snapshots.rb
+++ b/hbase-shell/src/main/ruby/shell/commands/list_table_snapshots.rb
@@ -44,7 +44,7 @@ EOF
         list = admin.list_table_snapshots(tableNameRegex, snapshotNameRegex)
         list.each do |snapshot|
           creation_time = Time.at(snapshot.getCreationTime / 1000).to_s
-          formatter.row([snapshot.getName, snapshot.getTable + ' (' + creation_time + ')'])
+          formatter.row([snapshot.getName, snapshot.getTableNameAsString + ' (' + creation_time + ')'])
         end
 
         formatter.footer(list.size)