From d3b1689f6051b541f9d2428a07b6e29d55e8a792 Mon Sep 17 00:00:00 2001 From: Andrew Purtell Date: Wed, 13 Jan 2021 10:21:29 -0800 Subject: [PATCH] [branch-2.4] Restore AccessController method removed by HBASE-25277 Signed-off-by: Andrew Purtell --- .../hadoop/hbase/security/access/AccessController.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/AccessController.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/AccessController.java index 86884be50ee..f67d6afadba 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/AccessController.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/AccessController.java @@ -1852,6 +1852,14 @@ public class AccessController implements MasterCoprocessor, RegionCoprocessor, scannerOwners.remove(s); } + @Override + @Deprecated // Removed in later versions by HBASE-25277 + public boolean postScannerFilterRow(final ObserverContext e, + final InternalScanner s, final Cell curRowCell, final boolean hasMore) throws IOException { + // 'default' in RegionObserver might do unnecessary copy for Off heap backed Cells. + return hasMore; + } + /** * Verify, when servicing an RPC, that the caller is the scanner owner. * If so, we assume that access control is correctly enforced based on