Repository: hbase Updated Branches: refs/heads/branch-1 886ae4691 -> cc5024e6f refs/heads/master bdf9c35d0 -> d8a262996
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/cc5024e6 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/cc5024e6 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/cc5024e6 Branch: refs/heads/branch-1 Commit: cc5024e6fce985ea3266f22724942886870b042b Parents: 886ae46 Author: Andrew Purtell <[email protected]> Authored: Mon Aug 11 10:52:11 2014 -0700 Committer: Andrew Purtell <[email protected]> Committed: Mon Aug 11 10:52:11 2014 -0700 ---------------------------------------------------------------------- .../visibility/LoadTestDataGeneratorWithVisibilityLabels.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/cc5024e6/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; }
