hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject [2/6] hbase git commit: HBASE-13132 Improve RemoveColumn action debug message
Date Fri, 01 May 2015 20:34:46 GMT
HBASE-13132 Improve RemoveColumn action debug message

Conflicts:
	hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/actions/RemoveColumnAction.java


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

Branch: refs/heads/0.98
Commit: 586a60606e915a775c746de2e2842f0528f22d9b
Parents: 63281f8
Author: Jonathan M Hsieh <jmhsieh@apache.org>
Authored: Mon Mar 2 10:31:24 2015 -0800
Committer: Andrew Purtell <apurtell@apache.org>
Committed: Fri May 1 13:17:03 2015 -0700

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


http://git-wip-us.apache.org/repos/asf/hbase/blob/586a6060/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 9251100..709e066 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
@@ -64,9 +64,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
"
-        + tableNameString);
-    tableDescriptor.removeFamily(columnDescriptors[index].getName());
+    byte[] colDescName = columnDescriptors[index].getName();
+    LOG.debug("Performing action: Removing " + Bytes.toString(colDescName)+ " from "
+        + Bytes.toString(tableName));
+    tableDescriptor.removeFamily(colDescName);
 
     admin.modifyTable(tableName, tableDescriptor);
   }


Mime
View raw message