Closed markusjura closed 7 years ago
This issue does not compromise ConstructR's functionality, but a fix should be made to not print those warnings to the log.
Funny, just yesterday I noticed that some events are subscribed to, but not used. I think we can remove the respective subscriptions. PR welcome ;-)
Here is a PR that fixes this situation: https://github.com/hseeberger/constructr/pull/122
I've realized that the MemberJoined
and MemberUp
events are indeed handled by ConstructR in the Joining
state. Also, after leaving the Joining
state, ConstructR unsubscribes to these events. However, as shown above it is possible that it still receives these events in the AddingSelf
state. I guess this is due to a raise condition of Akka unsubscribe acknowledgement and already switched to the AddingSelf
state.
It is possible that akka cluster
MemberJoined
andMemberUp
events are send while theConstructrMachine
is in stateAddingSelf
. In this state the events are unhandled and therefore the following messages are written as warnings to the log:The current code first unsubscribes to the akka cluster events before moving into
AddingSelf
state. However, it might be a raise condition that otherMemberUp
orMemberJoined
events are received while Akka still hasn't processed the unsubscription.