You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ap...@apache.org on 2014/08/11 19:51:36 UTC

git commit: HBASE-11716 LoadTestDataGeneratorWithVisibilityLabels should handle Delete mutations (Anoop Sam John)

Repository: hbase
Updated Branches:
  refs/heads/0.98 67c232326 -> 93390aca7


HBASE-11716 LoadTestDataGeneratorWithVisibilityLabels should handle Delete mutations (Anoop Sam John)


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

Branch: refs/heads/0.98
Commit: 93390aca70a2780fd1a017a8db28ad9b01a808fc
Parents: 67c2323
Author: Andrew Purtell <ap...@apache.org>
Authored: Mon Aug 11 10:46:09 2014 -0700
Committer: Andrew Purtell <ap...@apache.org>
Committed: Mon Aug 11 10:46:47 2014 -0700

----------------------------------------------------------------------
 .../visibility/LoadTestDataGeneratorWithVisibilityLabels.java | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/93390aca/hbase-server/src/test/java/org/apache/hadoop/hbase/security/visibility/LoadTestDataGeneratorWithVisibilityLabels.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/security/visibility/LoadTestDataGeneratorWithVisibilityLabels.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/security/visibility/LoadTestDataGeneratorWithVisibilityLabels.java
index aa74f2a..e409f09 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/security/visibility/LoadTestDataGeneratorWithVisibilityLabels.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/security/visibility/LoadTestDataGeneratorWithVisibilityLabels.java
@@ -19,7 +19,6 @@ package org.apache.hadoop.hbase.security.visibility;
 import java.io.IOException;
 
 import org.apache.hadoop.classification.InterfaceAudience;
-import org.apache.hadoop.hbase.client.Delete;
 import org.apache.hadoop.hbase.client.Get;
 import org.apache.hadoop.hbase.client.Mutation;
 import org.apache.hadoop.hbase.util.MultiThreadedAction.DefaultDataGenerator;
@@ -78,10 +77,8 @@ public class LoadTestDataGeneratorWithVisibilityLabels extends DefaultDataGenera
 
   @Override
   public Mutation beforeMutate(long rowkeyBase, Mutation m) throws IOException {
-    if (!(m instanceof Delete)) {
-      m.setCellVisibility(new CellVisibility(this.visibilityExps[(int) rowkeyBase
-          % this.visibilityExps.length]));
-    }
+    m.setCellVisibility(new CellVisibility(this.visibilityExps[(int) rowkeyBase
+        % this.visibilityExps.length]));
     return m;
   }