About dead letter sending Tcp$Register

532 views
Skip to first unread message

Alejandro De Lío

unread,
Dec 11, 2013, 3:00:16 PM12/11/13
to spray...@googlegroups.com
Hey guys, I'm having a problem with (small) concurrecny. I was having the registration timeout issue. So I added a big window for registration timeout. What I'm getting now is the following:

2013-12-11T19:47:20.962Z [INFO ] akka.actor.LocalActorRef:74 [api-v3-akka.actor.default-dispatcher-10] [akka://api-v3/system/IO-TCP/selectors/$a/278] - Message [akka.io.Tcp$Register] from Actor[akka://api-v3/user/IO-HTTP/listener-0/275#-1988702892] to Actor[akka://api-v3/system/IO-TCP/selectors/$a/278#-1755084688] was not delivered. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'.

There's also the following message:
2013-12-11T19:47:20.964Z [INFO ] akka.actor.LocalActorRef:74 [api-v3-akka.actor.default-dispatcher-10] [akka://api-v3/user/IO-HTTP/listener-0/157] - Message [spray.io.TickGenerator$Tick$] from Actor[akka://api-v3/deadLetters] to Actor[akka://api-v3/user/IO-HTTP/listener-0/157#-63033231] was not delivered. [5] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'.

Those messages appear a couple of times.
Does this mean that there's a problem in the IO(Http) object??? It looks like the Register message is lost and the connection is reset. Could this lost be the cause why I was getting the registration-timeout?
This starts happening with a small concurrency (rate around 500 simultaneous requests).

Do you think of any where I can start looking? I'm kind of lost in here.
Thanks :)
Alex

Mathias Doenitz

unread,
Dec 12, 2013, 3:38:50 AM12/12/13
to spray...@googlegroups.com
Alejandro,

from the looks of this log message:

> 2013-12-11T19:47:20.962Z [INFO ] akka.actor.LocalActorRef:74
> [api-v3-akka.actor.default-dispatcher-10]
> [akka://api-v3/system/IO-TCP/selectors/$a/278] - Message
> [akka.io.Tcp$Register] from
> Actor[akka://api-v3/user/IO-HTTP/listener-0/275#-1988702892] to
> Actor[akka://api-v3/system/IO-TCP/selectors/$a/278#-1755084688] was not
> delivered. [2] dead letters encountered. This logging can be turned off or
> adjusted with configuration settings 'akka.log-dead-letters' and
> 'akka.log-dead-letters-during-shutdown'.

your TCP-level connection actor was already dead at the time the Register command from the HTTP layer arrived.
If you want to extend the registration timeout you'll have to do it on both layer, i.e. via both of these settings:

- spray.can.server.registration-timeout (default is 1s)
- akka.io.tcp.register-timeout (default is 5s)

It seems that you increased the first setting to more than the second setting which would explain the log message from above.

Cheers,
Mathias

---
mat...@spray.io
http://spray.io
> --
> You received this message because you are subscribed to the Google Groups "spray-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to spray-user+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages