HBASE-17054 Compactor#preCreateCoprocScanner should be passed user
This commit is contained in:
parent
3b63f701e6
commit
287358ba6c
|
@ -294,7 +294,7 @@ public abstract class Compactor<T extends CellSink> {
|
||||||
try {
|
try {
|
||||||
/* Include deletes, unless we are doing a major compaction */
|
/* Include deletes, unless we are doing a major compaction */
|
||||||
ScanType scanType = scannerFactory.getScanType(request);
|
ScanType scanType = scannerFactory.getScanType(request);
|
||||||
scanner = preCreateCoprocScanner(request, scanType, fd.earliestPutTs, scanners);
|
scanner = preCreateCoprocScanner(request, scanType, fd.earliestPutTs, scanners, user);
|
||||||
if (scanner == null) {
|
if (scanner == null) {
|
||||||
scanner = scannerFactory.createScanner(scanners, scanType, fd, smallestReadPoint);
|
scanner = scannerFactory.createScanner(scanners, scanType, fd, smallestReadPoint);
|
||||||
}
|
}
|
||||||
|
@ -344,13 +344,9 @@ public abstract class Compactor<T extends CellSink> {
|
||||||
* @param scanType Scan type.
|
* @param scanType Scan type.
|
||||||
* @param earliestPutTs Earliest put ts.
|
* @param earliestPutTs Earliest put ts.
|
||||||
* @param scanners File scanners for compaction files.
|
* @param scanners File scanners for compaction files.
|
||||||
|
* @param user the User
|
||||||
* @return Scanner override by coprocessor; null if not overriding.
|
* @return Scanner override by coprocessor; null if not overriding.
|
||||||
*/
|
*/
|
||||||
protected InternalScanner preCreateCoprocScanner(final CompactionRequest request,
|
|
||||||
ScanType scanType, long earliestPutTs, List<StoreFileScanner> scanners) throws IOException {
|
|
||||||
return preCreateCoprocScanner(request, scanType, earliestPutTs, scanners, null);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected InternalScanner preCreateCoprocScanner(final CompactionRequest request,
|
protected InternalScanner preCreateCoprocScanner(final CompactionRequest request,
|
||||||
final ScanType scanType, final long earliestPutTs, final List<StoreFileScanner> scanners,
|
final ScanType scanType, final long earliestPutTs, final List<StoreFileScanner> scanners,
|
||||||
User user) throws IOException {
|
User user) throws IOException {
|
||||||
|
|
Loading…
Reference in New Issue