GitHub user WangTaoTheTonic opened a pull request:
FLINK-6341Don't let JM fall into infinite loop
When TaskManager register to JobManager, JM will send a "NotifyResourceStarted" message to kick off Resource Manager, then trigger a reconnection to resource manager through sending a "TriggerRegistrationAtJobManager".
When the ref of resource manager in JobManager is not None and the reconnection is to same resource manager, JobManager will go to a infinite message sending loop which will always sending himself a "ReconnectResourceManager" every 2 seconds.
We have already observed that phonomenon. More details, check how JobManager handles `ReconnectResourceManager`.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/WangTaoTheTonic/flink
Alternatively you can review and apply these changes as the patch at:
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #3745
Author: WangTaoTheTonic <email@example.com>
Don't let JM fall into infinite loop