Javadoc
This method is called when the resource manager starts after a failure and reconnects to
the leader JobManager, who still has some workers registered. The method is used to consolidate
the view between resource manager and JobManager. The resource manager gets the list of TaskManagers
that the JobManager considers available and should return a list or nodes that the
resource manager considers available.
After that, the JobManager is informed of loss of all TaskManagers that are not part of the
returned list.
It is possible that the resource manager initially confirms some TaskManagers to be alive, even
through they are in an uncertain status, if it later sends necessary failure notifications
via calling
#notifyWorkerFailed(ResourceID,String).