-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix potential ArgumentException
during shard rebalancing
#7367
fix potential ArgumentException
during shard rebalancing
#7367
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Detailed my changes
src/contrib/cluster/Akka.Cluster.Sharding/ShardAllocationStrategy.cs
Outdated
Show resolved
Hide resolved
@@ -126,7 +126,13 @@ protected bool IsAGoodTimeToRebalance(IEnumerable<RegionEntry> regionEntries) | |||
|
|||
protected ImmutableList<RegionEntry> RegionEntriesFor(IImmutableDictionary<IActorRef, IImmutableList<string>> currentShardAllocations) | |||
{ | |||
var addressToMember = ClusterState.Members.ToImmutableDictionary(m => m.Address, m => m); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments that explain the change
I had to manually kick off AzDo pipelines here, not sure why |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Changes
close #7365
Checklist
For significant changes, please ensure that the following have been completed (delete if not relevant):
LeastShardAllocationStrategy
ArgumentException
during rebalance #7365