Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1792,7 +1792,7 @@ internal bool Active(object message)

case ResendShardHost m:
{
if (State.Shards.TryGetValue(m.Shard, out var region) && region.Equals(region))
if (State.Shards.TryGetValue(m.Shard, out var region) && region.Equals(m.Region))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woof - yeah this is a real bug alright. It's probably really rare in practice since the surface area for when this could cause a problem is in the middle of shard rebalancing during the timeout window, but you could potentially end up in a situation like #6973 - we know from affected users that the primary source of that issue was actually https://petabridge.com/blog/worst-dotnet-bug/ (ClusterSingleton split brain) but this is another route by which that same problem could be achieved. Nice catch.

SendHostShardMsg(m.Shard, region);
else
{
Expand Down
Loading