-
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
ClusterSharding should clean its internal cache if region/proxy died #6424
ClusterSharding should clean its internal cache if region/proxy died #6424
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.
LGTM - pending test suite passing
@@ -302,7 +302,8 @@ public ClusterSharding(ExtendedActorSystem system) | |||
var guardianName = system.Settings.Config.GetString("akka.cluster.sharding.guardian-name"); | |||
var dispatcher = system.Settings.Config.GetString("akka.cluster.sharding.use-dispatcher"); | |||
if (string.IsNullOrEmpty(dispatcher)) dispatcher = Dispatchers.InternalDispatcherId; | |||
return system.SystemActorOf(Props.Create(() => new ClusterShardingGuardian()).WithDispatcher(dispatcher), guardianName); | |||
return system.SystemActorOf(Props.Create(() => new ClusterShardingGuardian(_regions, _proxies)) |
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
@@ -118,6 +119,31 @@ private IActorRef StartProxy(ActorSystem sys) | |||
return ClusterSharding.Get(sys).StartProxy(shardTypeName, null, extractEntityId, extractShardId); | |||
} | |||
|
|||
[Fact(DisplayName = "ClusterSharding must clean up its internal regions cache when ShardRegion actor died")] | |||
public void ClusterShardingDeadShardRegionTest() |
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
…s/akka.net into Fix_sharding_region_cache_issue
Fixes #6398
Changes
ClusterSharding
toClusterShardingGuardian