hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmhs...@apache.org
Subject [2/2] hbase git commit: HBASE-13132 Improve RemoveColumn action debug message
Date Tue, 03 Mar 2015 12:43:45 GMT
HBASE-13132 Improve RemoveColumn action debug message


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

Branch: refs/heads/hbase-11339
Commit: d66f88134cfaf93eab50c5d5584f1e36f519c98c
Parents: cf4f4fc
Author: Jonathan M Hsieh <jmhsieh@apache.org>
Authored: Mon Mar 2 10:31:19 2015 -0800
Committer: Jonathan M Hsieh <jmhsieh@apache.org>
Committed: Tue Mar 3 04:41:36 2015 -0800

----------------------------------------------------------------------
 .../apache/hadoop/hbase/chaos/actions/RemoveColumnAction.java  | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/d66f8813/hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/actions/RemoveColumnAction.java
----------------------------------------------------------------------
diff --git a/hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/actions/RemoveColumnAction.java
b/hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/actions/RemoveColumnAction.java
index fc169e3..efb4413 100644
--- a/hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/actions/RemoveColumnAction.java
+++ b/hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/actions/RemoveColumnAction.java
@@ -26,6 +26,7 @@ import org.apache.hadoop.hbase.HColumnDescriptor;
 import org.apache.hadoop.hbase.HTableDescriptor;
 import org.apache.hadoop.hbase.TableName;
 import org.apache.hadoop.hbase.client.Admin;
+import org.apache.hadoop.hbase.util.Bytes;
 
 /**
  * Action that removes a column family.
@@ -62,9 +63,10 @@ public class RemoveColumnAction extends Action {
           protectedColumns.contains(columnDescriptors[index].getNameAsString())) {
       index = random.nextInt(columnDescriptors.length);
     }
-    LOG.debug("Performing action: Removing " + columnDescriptors[index].getName() + " from
"
+    byte[] colDescName = columnDescriptors[index].getName();
+    LOG.debug("Performing action: Removing " + Bytes.toString(colDescName)+ " from "
         + tableName.getNameAsString());
-    tableDescriptor.removeFamily(columnDescriptors[index].getName());
+    tableDescriptor.removeFamily(colDescName);
 
     admin.modifyTable(tableName, tableDescriptor);
   }


Mime
View raw message