如何檢測隔離系統內的隔離狀態〜?Akka羣集檢測隔離狀態
我看到下面這篇日誌:
[warn] Remoting - Tried to associate with unreachable remote address [akka.tcp://[email protected]:6000]. Address is now gated for 5000 ms, all messages to this address will be delivered to dead letters. Reason: The remote system has quarantined this system. No further associations to the remote system are possible until this system is restarted.
,但我不知道我怎麼能到這個從代碼反應。
我發現這個線程:Recovering from the Quarantined state,提示來監聽QuarantinedEvent
但被隔離未在系統上出動。
實際上我聽了所有RemotingLifecycleEvent
S和發現這一點:
AssociationError [akka.tcp://[email protected]:2552] -> [akka.tcp://[email protected]:6000]: Error [Invalid address: akka.tcp://[email protected]:6000] [akka.remote.InvalidAssociation: Invalid address: akka.tcp://[email protected]:6000 Caused by: akka.remote.transport.Transport$InvalidAssociationException: The remote system has quarantined this system. No further associations to the remote system are possible until this system is restarted.]
但是這僅僅是一個AssociationError
將被派遣許多其他原因還有,我必須尋找實際文字"The remote system has quarantined this system."
內的錯誤可以肯定?