Hi ,all :
Process A connects to process B via Akka Remote.
There are two kinds of actors in process A:
(1)A single monitor actor watches a single manager actor in process B
If the monitor actor doesn't hold the ActorRef of the manager
actor, it sends a Identify message to process B via AskableActorSelection
every 10 seconds.
If the monitor actor gets ActorIdentity message, it holds the
ActorRef of the manager actor and watches it
If the monitor actor gets the Terminated message of the manager
actor, it resends Identify Message periodically until it gets ActorIdentity
message.
(2)Many client actors dynamically created.
Every client actor sends a message to the monitor actor in its
preStart method.
If the monitor actor holds the ActorRef of the manager actor in
Process B, it forwards the messages to the manager actor
The manager actor creates a server actor for every client actor and
returns the ActorRef of the server actor to the client actor
The client actor watches its server actor and talks to the server
actor directly.
If the client gets Terminated message of the server, it suicides.
When process B restarts to update, there may be two tcp connections
initiated from process A. I turned on akka log:
(1)Process A
Sending remote message ActorSelection(Identify(...))
(2)Process B
Receives message ActorSelection(Identify(...))
Sending message ActorIdentity(...)
But Process A's log doesn't show "receives ActorIdentity message"
I guess the issue is about two tcp connections initiated from the same
process.
Is it a bug?
What I should do to avoid or work around that?
Or I can improve the communcation pattern between process A and process
B ?
Thanks very much.
--
>>>>>>>>>> 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.