[branch-2.4] Restore AccessController method removed by HBASE-25277

Signed-off-by: Andrew Purtell <apurtell@apache.org>
This commit is contained in:
Andrew Purtell 2021-01-13 10:21:29 -08:00
parent 85075940c0
commit d3b1689f60
1 changed files with 8 additions and 0 deletions

View File

@ -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<RegionCoprocessorEnvironment> 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