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:52:22 UTC

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

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

Branch: refs/heads/master
Commit: d8a262996b43f9ffa9c641b1a0b0b2cd08677bc3
Parents: bdf9c35
Author: Andrew Purtell <ap...@apache.org>
Authored: Mon Aug 11 10:52:12 2014 -0700
Committer: Andrew Purtell <ap...@apache.org>
Committed: Mon Aug 11 10:52:12 2014 -0700

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


http://git-wip-us.apache.org/repos/asf/hbase/blob/d8a26299/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;
   }