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:
parent
169f2cff30
commit
4838246ba3
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue