Github user yanghua commented on the issue:
https://github.com/apache/flink/pull/5869
@zentol if we just remove it from `disassociateFromJobManager ` and do not
clear and reinitialize it, when a new job manager reconnect to the task manager
, it would remain some tasks' information remain. Because when call
`submitTask` method would trigger `taskManagerMetricGroup.addTaskForJob` . ---
