HBASE-23154 list_deadservers return incorrect no of rows (#717)

Signed-off-by: stack <stack@apache.org>
This commit is contained in:
Karthik Palanisamy 2019-10-12 09:13:50 -07:00 committed by Michael Stack
parent c0a09ccbbd
commit 065993294f
2 changed files with 6 additions and 1 deletions

View File

@ -37,7 +37,7 @@ module Shell
formatter.row([server.toString])
end
formatter.footer(now, servers.size)
formatter.footer(servers.size)
end
end
end

View File

@ -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