HBASE-23154 list_deadservers return incorrect no of rows (#717)
Signed-off-by: stack <stack@apache.org>
This commit is contained in:
parent
c0a09ccbbd
commit
065993294f
|
@ -37,7 +37,7 @@ module Shell
|
|||
formatter.row([server.toString])
|
||||
end
|
||||
|
||||
formatter.footer(now, servers.size)
|
||||
formatter.footer(servers.size)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue