You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by tr...@apache.org on 2020/10/20 21:03:10 UTC
[flink] 05/09: [FLINK-19022][rpc] Log if RpcEndpoint failed its
termination
This is an automated email from the ASF dual-hosted git repository.
trohrmann pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
commit 806b9f332efe86926d26861e64b528e4c6ce1cd6
Author: Till Rohrmann <tr...@apache.org>
AuthorDate: Mon Oct 19 15:29:20 2020 +0200
[FLINK-19022][rpc] Log if RpcEndpoint failed its termination
In order to not swallow the failure reason of failed RpcEndpoints, we are now
logging the cause of a RpcEndpoint failure.
---
.../src/main/java/org/apache/flink/runtime/rpc/akka/AkkaRpcActor.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/rpc/akka/AkkaRpcActor.java b/flink-runtime/src/main/java/org/apache/flink/runtime/rpc/akka/AkkaRpcActor.java
index 7ad3776..34d4690 100644
--- a/flink-runtime/src/main/java/org/apache/flink/runtime/rpc/akka/AkkaRpcActor.java
+++ b/flink-runtime/src/main/java/org/apache/flink/runtime/rpc/akka/AkkaRpcActor.java
@@ -127,8 +127,10 @@ class AkkaRpcActor<T extends RpcEndpoint & RpcGateway> extends AbstractActor {
super.postStop();
if (rpcEndpointTerminationResult.isSuccess()) {
+ log.debug("The RpcEndpoint {} terminated successfully.", rpcEndpoint.getEndpointId());
terminationFuture.complete(null);
} else {
+ log.info("The RpcEndpoint {} failed.", rpcEndpoint.getEndpointId(), rpcEndpointTerminationResult.getFailureCause());
terminationFuture.completeExceptionally(rpcEndpointTerminationResult.getFailureCause());
}