Skip to content

Commit

Permalink
MB-44311 Use destination node from filtered solution for replica repair
Browse files Browse the repository at this point in the history
When there is a transfer like (replica_repair) -> nodeA, nodeA->nodeB,
we filter the transfer to become (replica_repair) -> nodeB. However,
when generating the token, we set the destination node as nodeA i.e.
the destination node initially choosen by planner. This is leading
to rebalance failures

Change-Id: I0419e0ff0ef45152e19c92037ebe7a1ff45060a0
  • Loading branch information
varunv-cb committed Feb 16, 2021
1 parent d3f5b2e commit 08ee48e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion secondary/planner/executor.go
Expand Up @@ -404,7 +404,7 @@ func genTransferToken(solution *Solution, masterId string, topologyChange servic
token = &common.TransferToken{
MasterId: masterId,
SourceId: "",
DestId: indexer.NodeUUID,
DestId: index.destNode.NodeUUID,
RebalId: topologyChange.ID,
State: common.TransferTokenCreated,
InstId: index.InstId,
Expand Down

0 comments on commit 08ee48e

Please sign in to comment.