Github user sihuazhou commented on the issue:
https://github.com/apache/flink/pull/5931
Hi @shuai-xu, If I'm not misunderstand, I think your approach is exactly
what I have done in the previous
[PR](https://github.com/apache/flink/pull/5881) for this ticket, but it faces
the same problem as that faced by this PR. That's even the container
registered with RM successfully, but after RM offering the slot to JM, the
container was killed before it registered with JM successfully. I think one way
to overcome this is that the RM should notify the JM which TM it will connect
with before the RM assign the slot to it, this way JM could be notified that
the TM was killed before connecting with it successfully.
---