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

Fixed to notification on DeathWatch watching. #899

Merged
merged 1 commit into from
Apr 25, 2015
Merged

Fixed to notification on DeathWatch watching. #899

merged 1 commit into from
Apr 25, 2015

Conversation

annymsMthd
Copy link
Contributor

Also some boyscout cleanup

@annymsMthd
Copy link
Contributor Author

#887

@annymsMthd
Copy link
Contributor Author

@Aaronontheweb here we go

// send DeathWatchNotification to self for all matching subjects
// that are not child with existenceConfirmed = false because we could have been watching a
// non-local ActorRef that had never resolved before the other node went down
// When a parent is watching a child and it terminates due to AddressTerminated
// it is removed by sending DeathWatchNotification with existenceConfirmed = true to support
// immediate creation of child with same name.
foreach (var a in watchedBy.Where(a => a.Path.Address == address))
foreach (var a in _state.GetWatching().Where(a => a.Path.Address == address))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the fix

Copy link
Member

Choose a reason for hiding this comment

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

So was this a bug that got added when we extracted the ActorCell state, or has this been a persistent issue for some time? Only asking because it may explain some of the cluster deathwatch behavior I've observed during multi-node test runs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks like this was introduced about 29 days ago. It affects Cluster DeathWatch directly because a node that has been removed from the cluster can't tell the DeathWatchers from another node it's dead:)

rogeralsing added a commit that referenced this pull request Apr 25, 2015
Fixed to notification on DeathWatch watching.
@rogeralsing rogeralsing merged commit 45b6346 into akkadotnet:dev Apr 25, 2015
@rogeralsing
Copy link
Contributor

Ohhh my bad, thanks!

@annymsMthd annymsMthd deleted the 887-fix-deathwatch branch May 16, 2015 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants