Skip to content

Conversation

@Aaronontheweb
Copy link
Member

@Aaronontheweb Aaronontheweb commented Sep 4, 2025

Changes

close #7804

Checklist

For significant changes, please ensure that the following have been completed (delete if not relevant):

Context.Unwatch(subscriber);

if (!_subscribers.ContainsKey(key.Id) || !_newSubscribers.ContainsKey(key.Id))
if (!_subscribers.ContainsKey(key.Id) && !_newSubscribers.ContainsKey(key.Id))
Copy link
Member Author

Choose a reason for hiding this comment

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

We should only remove the subscription key if the subscription is found in NEITHER of these collections.

Copy link
Contributor

@Arkatufus Arkatufus left a comment

Choose a reason for hiding this comment

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

LGTM

@Arkatufus Arkatufus enabled auto-merge (squash) September 4, 2025 16:13
@Aaronontheweb
Copy link
Member Author

Will need to backport this to the v1.5 branch as well.

@Arkatufus Arkatufus merged commit 66f7f1e into akkadotnet:dev Sep 4, 2025
11 checks passed
@Aaronontheweb Aaronontheweb deleted the fix/7804-KeyNotFoundException branch September 4, 2025 16:28
Aaronontheweb added a commit to Aaronontheweb/akka.net that referenced this pull request Sep 4, 2025
@Aaronontheweb
Copy link
Member Author

Backport: #7809

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.

KeyNotFoundException in DistributedData Replicator.Notify() due to inconsistent subscription state

2 participants