diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/security/visibility/VisibilityController.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/security/visibility/VisibilityController.java index d53ca7661e8..6e0ee2f5fae 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/security/visibility/VisibilityController.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/security/visibility/VisibilityController.java @@ -683,7 +683,7 @@ public class VisibilityController extends BaseRegionObserver implements MasterOb } } } - } else { + } else if (cellVisibility != null) { // CellVisibility in a Delete is not legal! Fail the operation miniBatchOp.setOperationStatus(i, new OperationStatus(SANITY_CHECK_FAILURE, "CellVisibility cannot be set on Delete mutation"));