You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by az...@apache.org on 2020/04/14 09:14:46 UTC
[flink] 02/03: [hotfix][coordination] Log if
TaskExecutor#establishResourceManagerConnection fails
This is an automated email from the ASF dual-hosted git repository.
azagrebin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
commit 2735fa7715a8bfd20702f624ad881201c40f0d06
Author: Andrey Zagrebin <az...@apache.org>
AuthorDate: Wed Apr 8 10:31:23 2020 +0300
[hotfix][coordination] Log if TaskExecutor#establishResourceManagerConnection fails
---
.../apache/flink/runtime/taskexecutor/TaskExecutor.java | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/taskexecutor/TaskExecutor.java b/flink-runtime/src/main/java/org/apache/flink/runtime/taskexecutor/TaskExecutor.java
index 2b60ab0..5d8f40a 100644
--- a/flink-runtime/src/main/java/org/apache/flink/runtime/taskexecutor/TaskExecutor.java
+++ b/flink-runtime/src/main/java/org/apache/flink/runtime/taskexecutor/TaskExecutor.java
@@ -1802,11 +1802,15 @@ public class TaskExecutor extends RpcEndpoint implements TaskExecutorGateway {
// filter out outdated connections
//noinspection ObjectEquality
if (resourceManagerConnection == connection) {
- establishResourceManagerConnection(
- resourceManagerGateway,
- resourceManagerId,
- taskExecutorRegistrationId,
- clusterInformation);
+ try {
+ establishResourceManagerConnection(
+ resourceManagerGateway,
+ resourceManagerId,
+ taskExecutorRegistrationId,
+ clusterInformation);
+ } catch (Throwable t) {
+ log.error("Establishing Resource Manager connection in Task Executor failed", t);
+ }
}
});
}