dead letters encountered and timed out replies

59 views
Skip to first unread message

Nicola Piccinini

unread,
Oct 1, 2014, 6:10:19 AM10/1/14
to akka...@googlegroups.com
hi all,

my understanding is that when I have:

actorRef ? "hi"

and the future times out, the reply eventually sent back from actorRef goes to dead-letters.

That is fine but the log is "polluted" with messages about "dead letters encountered" related to those replies.

Is there a way to filter out only this kind of messages from the log (but keep other "dead letters encountered")?

Thanks,
Nicola


Akka Team

unread,
Oct 2, 2014, 5:47:40 AM10/2/14
to Akka User List
Hi Nicola,



As far as I know not, there are only two configuration settings related to dead letters:

akka.log-dead-letters
akka.log-dead-letters-during-shutdown

but you don't have the ability to filter on different "kinds" of dead letters. You can subscribe though to dead letter events and handle them as you want, see here:

http://doc.akka.io/docs/akka/2.3.6/general/message-delivery-reliability.html#Dead_Letters

-Endre

 

Thanks,
Nicola


--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.



--
Akka Team
Typesafe - The software stack for applications that scale
Blog: letitcrash.com
Twitter: @akkateam

Nicola Piccinini

unread,
Oct 8, 2014, 4:54:56 PM10/8/14
to akka-user
thanks Endre for the pointers but I am still out of luck.

The DeadLetter objects I see when I subscribe to the event stream
have already "dead-letter" as recipient, so it is impossible to
determine if they were a reply to a timed out "ask".

I tried to define a sort of conditional reply, in order to reply to
the ask only if the sending actor is not terminated but it did not
work.

If I am not able to filter out this kind of errors from the
dead-letter log, it is useless to look at it.

Best regards,
Nicola
> You received this message because you are subscribed to a topic in the
> Google Groups "Akka User List" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/akka-user/F_o-fkQIOPI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to

Akka Team

unread,
Oct 15, 2014, 9:18:00 AM10/15/14
to Akka User List
Hi Nicola,

The DeadLetter objects I see when I subscribe  to the event stream
have already "dead-letter" as recipient, so it is impossible to
determine if they were a reply to a timed out "ask".
I tried to define a sort of conditional reply, in order to reply to
the ask only if the sending actor is not terminated but it did not
work.
Right, this will be racy anyway as you're working with a concurrent system here so there could be races between
you checking if someone is alive and it dying before it gets the message delivered.
 
If I am not able to filter out this kind of errors from the dead-letter log, it is useless to look at it.
Dead letters are useful to look at then you send things to wrong / dead actors and you didn't notice for example.
In the ask-late-reply case at least you'll get to see that there was a response like that, while not super precise it's still a bit helpful.

Sorry we don't have a better solution here.
Future wise we've been thinking about adding some kinds of tracing, which would make these kinds of things easier to detect.

-- 
Konrad

Nicola Piccinini

unread,
Oct 23, 2014, 4:01:04 AM10/23/14
to akka-user
>> If I am not able to filter out this kind of errors from the dead-letter
>> log, it is useless to look at it.
>
> Dead letters are useful to look at then you send things to wrong / dead
> actors and you didn't notice for example.

yes, in fact it is potentially very useful and I would like to check
it to be sure that the system is working properly but this is no
longer possible if it gets flooded by "late ask replies".

> Sorry we don't have a better solution here.
> Future wise we've been thinking about adding some kinds of tracing, which
> would make these kinds of things easier to detect.

thank you for taking that into consideration, best regards,

Nicola
Reply all
Reply to author
Forward
0 new messages