Skip to content

Commit

Permalink
change req to right datanode when execute remove-datanode.sh (apache#…
Browse files Browse the repository at this point in the history
  • Loading branch information
SzyWilliam authored Sep 14, 2022
1 parent 3a6efca commit c85d80e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public TSStatus addRegionPeer(TDataNodeLocation destDataNode, TConsensusGroupId
}

// Send addRegionPeer request to the selected DataNode
TMaintainPeerReq maintainPeerReq = new TMaintainPeerReq(regionId, selectedDataNode.get());
TMaintainPeerReq maintainPeerReq = new TMaintainPeerReq(regionId, destDataNode);
status =
SyncDataNodeClientPool.getInstance()
.sendSyncRequestToDataNodeWithRetry(
Expand Down Expand Up @@ -213,7 +213,7 @@ public TSStatus removeRegionPeer(TDataNodeLocation originalDataNode, TConsensusG
}

// Send addRegionPeer request to the selected DataNode
TMaintainPeerReq maintainPeerReq = new TMaintainPeerReq(regionId, selectedDataNode.get());
TMaintainPeerReq maintainPeerReq = new TMaintainPeerReq(regionId, originalDataNode);
status =
SyncDataNodeClientPool.getInstance()
.sendSyncRequestToDataNodeWithRetry(
Expand Down

0 comments on commit c85d80e

Please sign in to comment.