Skip to content
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

Sharding - RestartShard escapes into userspace #3509

Merged
merged 1 commit into from
Jun 14, 2018

Conversation

zbynek001
Copy link
Contributor

there is a possibility that the ShardRegion.RestartShard message escapes into userspace. This can cause issues in custom ExtractEntityId implementations.

This can happen, when the RestartShard message gets into ShardBuffers here:

ShardBuffers = ShardBuffers.SetItem(shardId, buffer.Add(new KeyValuePair<object, IActorRef>(message, sender)));

and later is send to Shard

@Aaronontheweb
Copy link
Member

Just double checked this against the JVM code base and it looks like they have the same bug. Nice catch. LGTM.

@Aaronontheweb Aaronontheweb merged commit 6f32f6a into akkadotnet:dev Jun 14, 2018
Aaronontheweb pushed a commit that referenced this pull request Jun 14, 2018
NickPolyder added a commit to NickPolyder/akka.net that referenced this pull request Jun 18, 2018
NickPolyder added a commit to NickPolyder/akka.net that referenced this pull request Jul 20, 2019
@zbynek001 zbynek001 deleted the sharding-restartshard-fix branch July 16, 2021 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants