diff --git a/hbase-shell/src/main/ruby/shell/commands/clear_deadservers.rb b/hbase-shell/src/main/ruby/shell/commands/clear_deadservers.rb index c3b5659cc0a..0849e71e2c6 100644 --- a/hbase-shell/src/main/ruby/shell/commands/clear_deadservers.rb +++ b/hbase-shell/src/main/ruby/shell/commands/clear_deadservers.rb @@ -34,7 +34,10 @@ module Shell EOF end + # rubocop:disable Metrics/AbcSize + # rubocop:disable Metrics/MethodLength def command(*dead_servers) + now = Time.now servers = admin.clear_deadservers(dead_servers) if servers.size <= 0 formatter.row(['true']) @@ -44,9 +47,11 @@ module Shell servers.each do |server| formatter.row([server.toString]) end - formatter.footer(servers.size) + formatter.footer(now, servers.size) end end + # rubocop:enable Metrics/AbcSize + # rubocop:enable Metrics/MethodLength end end end 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 be3f0bf7ff0..69c7e72f430 100644 --- a/hbase-shell/src/main/ruby/shell/commands/list_deadservers.rb +++ b/hbase-shell/src/main/ruby/shell/commands/list_deadservers.rb @@ -29,6 +29,7 @@ module Shell end def command + now = Time.now formatter.header(['SERVERNAME']) servers = admin.list_deadservers @@ -36,7 +37,7 @@ module Shell formatter.row([server.toString]) end - formatter.footer(servers.size) + formatter.footer(now, servers.size) end end end