hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject [1/2] hbase git commit: HBASE-19467 rsgroups shell commands don't properly display elapsed time
Date Fri, 08 Dec 2017 23:13:50 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 bae3b0b96 -> 4698cf16e
  refs/heads/branch-1.4 5e3453146 -> 8a8082375


HBASE-19467 rsgroups shell commands don't properly display elapsed time


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/8a808237
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/8a808237
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/8a808237

Branch: refs/heads/branch-1.4
Commit: 8a8082375e6dd4a2387c8b4c8e9f777eccd5edd6
Parents: 5e34531
Author: Andrew Purtell <apurtell@apache.org>
Authored: Fri Dec 8 15:06:37 2017 -0800
Committer: Andrew Purtell <apurtell@apache.org>
Committed: Fri Dec 8 15:06:37 2017 -0800

----------------------------------------------------------------------
 hbase-shell/src/main/ruby/shell/commands/get_rsgroup.rb        | 3 ++-
 hbase-shell/src/main/ruby/shell/commands/get_server_rsgroup.rb | 3 ++-
 hbase-shell/src/main/ruby/shell/commands/get_table_rsgroup.rb  | 3 ++-
 hbase-shell/src/main/ruby/shell/commands/list_rsgroups.rb      | 3 ++-
 4 files changed, 8 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/8a808237/hbase-shell/src/main/ruby/shell/commands/get_rsgroup.rb
----------------------------------------------------------------------
diff --git a/hbase-shell/src/main/ruby/shell/commands/get_rsgroup.rb b/hbase-shell/src/main/ruby/shell/commands/get_rsgroup.rb
index ad8a0e3..46af640 100644
--- a/hbase-shell/src/main/ruby/shell/commands/get_rsgroup.rb
+++ b/hbase-shell/src/main/ruby/shell/commands/get_rsgroup.rb
@@ -32,11 +32,12 @@ EOF
       end
 
       def command(group_name)
+        now = Time.now
         formatter.header(['GROUP INFORMATION'])
         rsgroup_admin.get_rsgroup(group_name) do |s|
           formatter.row([s])
         end
-        formatter.footer()
+        formatter.footer(now, 1)
       end
     end
   end

http://git-wip-us.apache.org/repos/asf/hbase/blob/8a808237/hbase-shell/src/main/ruby/shell/commands/get_server_rsgroup.rb
----------------------------------------------------------------------
diff --git a/hbase-shell/src/main/ruby/shell/commands/get_server_rsgroup.rb b/hbase-shell/src/main/ruby/shell/commands/get_server_rsgroup.rb
index 9884cd1..6ebff2e 100644
--- a/hbase-shell/src/main/ruby/shell/commands/get_server_rsgroup.rb
+++ b/hbase-shell/src/main/ruby/shell/commands/get_server_rsgroup.rb
@@ -30,9 +30,10 @@ EOF
       end
 
       def command(server)
+        now = Time.now
         group_name = rsgroup_admin.get_rsgroup_of_server(server).getName
         formatter.row([group_name])
-        formatter.footer(1)
+        formatter.footer(now, 1)
       end
     end
   end

http://git-wip-us.apache.org/repos/asf/hbase/blob/8a808237/hbase-shell/src/main/ruby/shell/commands/get_table_rsgroup.rb
----------------------------------------------------------------------
diff --git a/hbase-shell/src/main/ruby/shell/commands/get_table_rsgroup.rb b/hbase-shell/src/main/ruby/shell/commands/get_table_rsgroup.rb
index 650cda5..d15cffa 100644
--- a/hbase-shell/src/main/ruby/shell/commands/get_table_rsgroup.rb
+++ b/hbase-shell/src/main/ruby/shell/commands/get_table_rsgroup.rb
@@ -30,10 +30,11 @@ EOF
       end
 
       def command(table)
+        now = Time.now
         group_name =
             rsgroup_admin.get_rsgroup_of_table(table).getName
         formatter.row([group_name])
-        formatter.footer(1)
+        formatter.footer(now, 1)
       end
     end
   end

http://git-wip-us.apache.org/repos/asf/hbase/blob/8a808237/hbase-shell/src/main/ruby/shell/commands/list_rsgroups.rb
----------------------------------------------------------------------
diff --git a/hbase-shell/src/main/ruby/shell/commands/list_rsgroups.rb b/hbase-shell/src/main/ruby/shell/commands/list_rsgroups.rb
index cabe84b..6ea1d45 100644
--- a/hbase-shell/src/main/ruby/shell/commands/list_rsgroups.rb
+++ b/hbase-shell/src/main/ruby/shell/commands/list_rsgroups.rb
@@ -34,6 +34,7 @@ EOF
       end
 
       def command(regex = '.*')
+        now = Time.now
         formatter.header(['GROUPS'])
 
         regex = /#{regex}/ unless regex.is_a?(Regexp)
@@ -42,7 +43,7 @@ EOF
           formatter.row([group])
         end
 
-        formatter.footer(list.size)
+        formatter.footer(now, list.size)
       end
     end
   end


Mime
View raw message