Skip to content

Commit

Permalink
Keep assignments got from shard manager in updateAssignments
Browse files Browse the repository at this point in the history
  • Loading branch information
pancho-bo authored and paiwo committed Jul 22, 2024
1 parent f341cf2 commit 3ff4eb5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class Sharding private (
Metrics.shards
.set(assignmentsOpt.count { case (_, podOpt) => podOpt.contains(address) })
.when(fromShardManager) *>
(if (fromShardManager) shardAssignments.update(map => if (map.isEmpty) assignments else map)
(if (fromShardManager) shardAssignments.set(assignments)
else
shardAssignments.update(map =>
// we keep self assignments (we don't override them with the new assignments
Expand Down

0 comments on commit 3ff4eb5

Please sign in to comment.