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

Fixes actor ref leak in AddressTerminatedTopic (#4304) #4305

Merged

Conversation

petrikero
Copy link
Contributor

I made the PR against v1.3 as that's what we're using and where I could confirm the bug and the fix.

…immediately after unwatching a remote actor.
@petrikero petrikero changed the title Fixes akkadotnet/akka.net#4304 Fixes actor ref leak in AddressTerminatedTopic (#4304) Mar 9, 2020
@petrikero
Copy link
Contributor Author

The failing .NET Framework Unit Tests seem to me to be unrelated, but I'm not sure I'm reading the outputs correctly.

@Aaronontheweb
Copy link
Member

@petrikero the v1.3 branch is missing a bunch of racy spec fixes we introduced in the v1.4 / dev branch. I'll take a look at these.

@Aaronontheweb Aaronontheweb self-requested a review March 9, 2020 20:18
@petrikero
Copy link
Contributor Author

Thanks! The issues are crashing our systems after a few days of running, so they're pretty critical for us. I did manage to inject a custom-built Akka.dll (with the two PRs included) into our build pipeline to solve the bleeding for now.

If there's anything more I can do to help get them merged, please let me know. I'll be happy to help, but am a bit at a loss with the size of the project. :)

@Aaronontheweb Aaronontheweb linked an issue Mar 9, 2020 that may be closed by this pull request
@Aaronontheweb
Copy link
Member

failed specs appear to be largely the result of:

  • Multiple bind on port errors (fixed in v1.4 branch)
  • Specs that are tightly temporally coupled - most of them have been disabled in v1.4 branch.

Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -173,7 +173,10 @@ protected void TellWatchersWeDied()
}
finally
{
_state = _state.ClearWatching();
MaintainAddressTerminatedSubscription(() =>
Copy link
Member

Choose a reason for hiding this comment

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

Wow, this is an old bug. Looks right though.

@Aaronontheweb
Copy link
Member

I'll see about having us to a v1.3.18 release to fix these.

@Aaronontheweb Aaronontheweb merged commit 9f2948a into akkadotnet:v1.3 Mar 9, 2020
Aaronontheweb pushed a commit to Aaronontheweb/akka.net that referenced this pull request Mar 9, 2020
@petrikero petrikero deleted the fix-actor-leak-on-termination branch March 9, 2020 20:54
Aaronontheweb added a commit that referenced this pull request Mar 10, 2020
…immediately after unwatching a remote actor. (#4305) (#4308)

Co-authored-by: Petri Kero <petrikero2@gmail.com>
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.

Actor reference leak in AddressTerminatedTopic
2 participants