-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Akka.Remote - Handling the case when remote node abruptly goes down (#2460) #2466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Akka.Remote - Handling the case when remote node abruptly goes down (#2460) #2466
Conversation
var heliosException = (ConnectException) e.InnerException; | ||
var socketException = heliosException?.InnerException as SocketException; | ||
var heliosException = (ConnectException)e.InnerException; | ||
var socketException = heliosException.InnerException as SocketException; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary null check removed
@@ -290,13 +301,13 @@ public HeliosTcpTransport(ActorSystem system, Config config) | |||
|
|||
var associate = await clientBootstrap.ConnectAsync(socketAddress); | |||
|
|||
var handler = (TcpClientHandler) associate.Pipeline.Last(); | |||
var handler = (TcpClientHandler)associate.Pipeline.Last(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry about this, Ctrl +K,D is my favorite. If it's forbidden, I will stop doing this....
|
||
NotifyListener(new Disassociated(DisassociateInfo.Shutdown)); | ||
} | ||
else if (se?.SocketErrorCode == SocketError.ConnectionReset) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New case is here. When it happens, we log the warning and sending DisassociateInfo.Shutdown.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
New logging:
|
78638d4
to
32da8ca
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
|
||
NotifyListener(new Disassociated(DisassociateInfo.Shutdown)); | ||
} | ||
else if (se?.SocketErrorCode == SocketError.ConnectionReset) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
Resolves #2460 |
A bit more logging for the known cases