hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmhs...@apache.org
Subject hbase git commit: HBASE-13132 Improve RemoveColumn action debug message
Date Mon, 02 Mar 2015 18:32:58 GMT
Repository: hbase
Updated Branches:
  refs/heads/hbase-1.0 [created] c4078b78f


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/c4078b78
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/c4078b78
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/c4078b78

Branch: refs/heads/hbase-1.0
Commit: c4078b78f3edd0b447c0d9fdf402efafe056a980
Parents: bd8544f
Author: Jonathan M Hsieh <jmhsieh@apache.org>
Authored: Mon Mar 2 10:31:20 2015 -0800
Committer: Jonathan M Hsieh <jmhsieh@apache.org>
Committed: Mon Mar 2 10:31:20 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/c4078b78/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