Skip to content

Commit 0659932

Browse files
Karthik Palanisamysaintstack
authored andcommitted
HBASE-23154 list_deadservers return incorrect no of rows (#717)
Signed-off-by: stack <stack@apache.org>
1 parent c0a09cc commit 0659932

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

hbase-shell/src/main/ruby/shell/commands/list_deadservers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def command
3737
formatter.row([server.toString])
3838
end
3939

40-
formatter.footer(now, servers.size)
40+
formatter.footer(servers.size)
4141
end
4242
end
4343
end

hbase-shell/src/test/ruby/hbase/admin_test.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ def teardown
9898
assert(list.count > 0)
9999
end
100100

101+
define_test 'list_deadservers should return exact count of dead servers' do
102+
output = capture_stdout { command(:list_deadservers) }
103+
assert(output.include?('0 row(s)'))
104+
end
105+
101106
#-------------------------------------------------------------------------------
102107

103108
define_test "flush should work" do

0 commit comments

Comments
 (0)