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 2019/10/12 16:16:31 UTC
[hbase] branch branch-2.1 updated: HBASE-23154 list_deadservers
return incorrect no of rows (#717)
This is an automated email from the ASF dual-hosted git repository.
stack pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.1 by this push:
new 3015b44 HBASE-23154 list_deadservers return incorrect no of rows (#717)
3015b44 is described below
commit 3015b44e7c04a943488cce573d63147e5178e038
Author: Karthik Palanisamy <kp...@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 35a8a5e..9bcd2e7 100644
--- a/hbase-shell/src/test/ruby/hbase/admin_test.rb
+++ b/hbase-shell/src/test/ruby/hbase/admin_test.rb
@@ -101,6 +101,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