From 46abaef4be220bcfb554052b984ed8ad570535b2 Mon Sep 17 00:00:00 2001 From: Duo Zhang Date: Sun, 18 Aug 2019 21:54:57 +0800 Subject: [PATCH] HBASE-22875 TestShell and TestAdminShell2 are broken --- hbase-shell/src/main/ruby/shell/commands/list_snapshots.rb | 2 +- .../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 1b3b8f26c3fb..6a173993654a 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 @@ def command(regex = '.*') 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 558fda8dedf9..b3bb2ca03d58 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 @@ def command(tableNameRegex, snapshotNameRegex = '.*') 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)