This is an automated email from the ASF dual-hosted git repository. stack pushed a commit to branch branch-2 in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2 by this push: new 7171da0 HBASE-23154 list_deadservers return incorrect no of rows (#717) 7171da0 is described below commit 7171da09ea81b6351700aa71ae3b5e171936ddfc Author: Karthik Palanisamy <kpalanis...@hortonworks.com> AuthorDate: Sat Oct 12 09:13:50 2019 -0700 HBASE-23154 list_deadservers return incorrect no of rows (#717) Signed-off-by: stack <st...@apache.org> --- hbase-shell/src/main/ruby/shell/commands/list_deadservers.rb | 2 +- hbase-shell/src/test/ruby/hbase/admin_test.rb | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/hbase-shell/src/main/ruby/shell/commands/list_deadservers.rb b/hbase-shell/src/main/ruby/shell/commands/list_deadservers.rb index 69c7e72..735fdaa 100644 --- a/hbase-shell/src/main/ruby/shell/commands/list_deadservers.rb +++ b/hbase-shell/src/main/ruby/shell/commands/list_deadservers.rb @@ -37,7 +37,7 @@ module Shell formatter.row([server.toString]) end - formatter.footer(now, servers.size) + formatter.footer(servers.size) end end end diff --git a/hbase-shell/src/test/ruby/hbase/admin_test.rb b/hbase-shell/src/test/ruby/hbase/admin_test.rb index 24a42da..a928673 100644 --- a/hbase-shell/src/test/ruby/hbase/admin_test.rb +++ b/hbase-shell/src/test/ruby/hbase/admin_test.rb @@ -98,6 +98,11 @@ module Hbase assert(list.count > 0) end + define_test 'list_deadservers should return exact count of dead servers' do + output = capture_stdout { command(:list_deadservers) } + assert(output.include?('0 row(s)')) + end + #------------------------------------------------------------------------------- define_test "flush should work" do