-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[Sharding] Duplicate LeastShardAllocationStrategy class #5488
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
Comments
They're both used depending on whether you enable the new rebalance algorithm introduced in 1.4.11 or not. For backwards compatibility, the new algorithm is disabled by default, but can be enabled by setting the option |
Ah, so either we should make that clear inside the comments and / or rename it? |
There's a comment in the old implementation (the one that is used by default for backwards compatibility). I guess this is one of the internal nuances of the project that you must be familiar with. |
Looking into #6973 and wondering if the old shard allocation strategy might be the culprit here, since that appears to be what's enabled by default and we've never really addressed that. |
For Akka.NET v1.6, we're going to deprecate the old strategy and move everyone forward onto the new one. We probably should have done this in v1.5 but that we missed that detail. |
(I don't think it is, otherwise this would have also been an issue on v1.4 - I suspect it's the changes we made to the shard allocation system in v1.5 that might be responsible, if #6973 is even a real problem at all.) |
Version Information
Version of Akka.NET?
1.4.31
Which Akka.NET Modules?
Akka.Cluster.Sharding
Describe the bug
There are two classes called LeastShardAllocationStrategy, one in Akka.Cluster.Sharding namespace and another in Akka.Cluster.Sharding.Internal namespace. Will need to determine which one is being used, and if both are being used, need to figure out the repercussion of it.
The text was updated successfully, but these errors were encountered: