Skip to content

Conversation

veblush
Copy link
Contributor

@veblush veblush commented Jul 8, 2016

DeadLetterActorRef.TellInternal should process DeadLetter like ActorRef.scala. Without this fix, Watch sent to already stopped actor will publish unncessary DeadLetter event.

@alexvaluyskiy
Copy link
Contributor

I have the same changes here
#1847
But I still have one failed test with DeadLetter and GracefullStop. Could you help me to debug it?

@alexvaluyskiy
Copy link
Contributor

alexvaluyskiy commented Jul 8, 2016

@Aaronontheweb @veblush
We are sending here a PoisonPill with NoSender
https://github.com/akkadotnet/akka.net/blob/dev/src/core/Akka/Actor/GracefulStopSupport.cs#L49

PoisonPill marked as IDeadLetterSupression.
And this behavior should be handled here
https://github.com/alexvaluyskiy/akka.net/blob/99d440f3f493de266d11d279f38130b5dcfa8915/src/core/Akka/Actor/EmptyLocalActorRef.cs#L89

But the message never going through this method.
And I get an error here
https://github.com/alexvaluyskiy/akka.net/blob/99d440f3f493de266d11d279f38130b5dcfa8915/src/core/Akka/Event/DeadLetter.cs#L74

I know, that we are sending NoSender, which equals null, but how is it works in Scala? And why I got this error in DeadLetter constructor instead of SupressedDeadLetter?

@Aaronontheweb
Copy link
Member

@alexvaluyskiy do you have a stacktrace for that error?

if(d != null && !SpecialHandle(d.Message, d.Sender)) { _eventStream.Publish(d);
if (d != null)
{
if (!SpecialHandle(d.Message, d.Sender)) { _eventStream.Publish(d); }
Copy link
Member

Choose a reason for hiding this comment

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

How is this any different than what we had before?

Copy link
Member

Choose a reason for hiding this comment

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

Nevermind - I got it now.

@Aaronontheweb Aaronontheweb merged commit 23f2e40 into akkadotnet:dev Jul 12, 2016
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