[jira] [Created] (FLINK-11215) TaskExecutor RegistrationTimeoutException within the specified maximum registration duration 300000ms
Liu created FLINK-11215:
Summary: TaskExecutor RegistrationTimeoutException within the specified maximum registration duration 300000ms
Issue Type: Bug
Sometimes, job will fail after 5 minutes because register fail at resource manager.
But it register successful 5 minutes ago in fact (Tag ljg is added by me for test).
This problem appears for that the function startRegistrationTimeout in TaskExecutor is executed in multiple places.
In the function start, it will be executed by resourceManagerLeaderRetriever.start(new ResourceManagerLeaderListener()) in async way. Also, it will be executed in the end of the start function. The order of these two executions is not guaranteed but they will change the same variable currentRegistrationTimeoutId. If the async way is fast enough to execute startRegistrationTimeout() first. It will fail 5 minutes later for the startRegistrationTimeout's execution in the end of the start function.
The solution is to put the function startRegistrationTimeout in the start of the start function. After doing this, the problem never appears again.
This message was sent by Atlassian JIRA