wchevreuil commented on a change in pull request #494: HBASE-22380 break circle
replication when doing bulkload
URL: https://github.com/apache/hbase/pull/494#discussion_r318716787
##########
File path:
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSRpcServices.java
##########
@@ -2364,6 +2364,14 @@ public UpdateFavoredNodesResponse
updateFavoredNodes(RpcController controller,
public BulkLoadHFileResponse bulkLoadHFile(final RpcController controller,
final BulkLoadHFileRequest request) throws ServiceException {
long start = EnvironmentEdgeManager.currentTime();
+ if(request.getClusterId() != null &&
+ request.getClusterId().equals(this.regionServer.clusterId)){
+ return BulkLoadHFileResponse.newBuilder().setLoaded(true).build();
+ }
+ String clusterId = request.getClusterId();
Review comment:
Yep, have addressed it on the last changes.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services