HBASE-26385 Clear CellScanner when replay (#3773)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
Signed-off-by: Pankaj Kumar <pankajkumar@apache.org>
This commit is contained in:
binlijin 2021-10-21 21:30:19 +08:00 committed by GitHub
parent 169f2cff30
commit 4838246ba3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -2089,6 +2089,7 @@ public class RSRpcServices extends HBaseRpcServicesBase<HRegionServer>
final ReplicateWALEntryRequest request) throws ServiceException {
long before = EnvironmentEdgeManager.currentTime();
CellScanner cells = ((HBaseRpcController) controller).cellScanner();
((HBaseRpcController) controller).setCellScanner(null);
try {
checkOpen();
List<WALEntry> entries = request.getEntryList();
@ -2209,6 +2210,7 @@ public class RSRpcServices extends HBaseRpcServicesBase<HRegionServer>
List<WALEntry> entries = request.getEntryList();
checkShouldRejectReplicationRequest(entries);
CellScanner cellScanner = ((HBaseRpcController) controller).cellScanner();
((HBaseRpcController) controller).setCellScanner(null);
server.getRegionServerCoprocessorHost().preReplicateLogEntries();
server.getReplicationSinkService().replicateLogEntries(entries, cellScanner,
request.getReplicationClusterId(), request.getSourceBaseNamespaceDirPath(),