Repository: hbase
Updated Branches:
  refs/heads/branch-1 b9ca1cc15 -> e84f5dff7


HBASE-20286 Improving shell command compaction_state

Signed-off-by: Apekshit Sharma <a...@apache.org>


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

Branch: refs/heads/branch-1
Commit: e84f5dff7ba8b9103b51cb31aee8b7e8461fdb13
Parents: b9ca1cc
Author: Csaba Skrabak <kekcs...@gmail.com>
Authored: Fri Apr 6 15:32:37 2018 -0700
Committer: Apekshit Sharma <a...@apache.org>
Committed: Fri Apr 6 15:37:08 2018 -0700

----------------------------------------------------------------------
 hbase-shell/src/main/ruby/shell/commands/compaction_state.rb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/e84f5dff/hbase-shell/src/main/ruby/shell/commands/compaction_state.rb
----------------------------------------------------------------------
diff --git a/hbase-shell/src/main/ruby/shell/commands/compaction_state.rb 
b/hbase-shell/src/main/ruby/shell/commands/compaction_state.rb
index fbcdc7e..137ec4c 100644
--- a/hbase-shell/src/main/ruby/shell/commands/compaction_state.rb
+++ b/hbase-shell/src/main/ruby/shell/commands/compaction_state.rb
@@ -22,14 +22,16 @@ module Shell
     class CompactionState < Command
       def help
         return <<-EOF
-          Gets compaction status for a table:
+          Gets compaction status (MAJOR, MAJOR_AND_MINOR, MINOR, NONE) for a 
table:
           hbase> compaction_state 'ns1:t1'
           hbase> compaction_state 't1'
         EOF
       end
 
       def command(table_name)
-        admin.getCompactionState(table_name)
+        rv = admin.getCompactionState(table_name)
+        formatter.row([rv])
+        rv
       end
     end
   end

Reply via email to