@Override public void notifyHeartbeatTimeout(final ResourceID resourceId) { runAsync(() -> { // first check whether the timeout is still valid if (establishedResourceManagerConnection != null && establishedResourceManagerConnection.getResourceManagerResourceId().equals(resourceId)) { log.info("The heartbeat of ResourceManager with id {} timed out.", resourceId); reconnectToResourceManager(new TaskManagerException( String.format("The heartbeat of ResourceManager with id %s timed out.", resourceId))); } else { log.debug("Received heartbeat timeout for outdated ResourceManager id {}. Ignoring the timeout.", resourceId); } }); }
@Override public void notifyHeartbeatTimeout(final ResourceID resourceId) { runAsync(() -> { // first check whether the timeout is still valid if (establishedResourceManagerConnection != null && establishedResourceManagerConnection.getResourceManagerResourceId().equals(resourceId)) { log.info("The heartbeat of ResourceManager with id {} timed out.", resourceId); reconnectToResourceManager(new TaskManagerException( String.format("The heartbeat of ResourceManager with id %s timed out.", resourceId))); } else { log.debug("Received heartbeat timeout for outdated ResourceManager id {}. Ignoring the timeout.", resourceId); } }); }
@Override public void notifyHeartbeatTimeout(final ResourceID resourceId) { runAsync(() -> { // first check whether the timeout is still valid if (establishedResourceManagerConnection != null && establishedResourceManagerConnection.getResourceManagerResourceId().equals(resourceId)) { log.info("The heartbeat of ResourceManager with id {} timed out.", resourceId); reconnectToResourceManager(new TaskManagerException( String.format("The heartbeat of ResourceManager with id %s timed out.", resourceId))); } else { log.debug("Received heartbeat timeout for outdated ResourceManager id {}. Ignoring the timeout.", resourceId); } }); }
final String message = String.format("TaskManager is not connected to the resource manager %s.", resourceManagerId); log.debug(message); throw new TaskManagerException(message);
final String message = String.format("TaskManager is not connected to the resource manager %s.", resourceManagerId); log.debug(message); throw new TaskManagerException(message);
(acknowledge, throwable) -> { if (throwable != null) { reconnectToResourceManager(new TaskManagerException("Failed to send initial slot report to ResourceManager.", throwable));
final String message = String.format("TaskManager is not connected to the resource manager %s.", resourceManagerId); log.debug(message); throw new TaskManagerException(message);
(acknowledge, throwable) -> { if (throwable != null) { reconnectToResourceManager(new TaskManagerException("Failed to send initial slot report to ResourceManager.", throwable));
(acknowledge, throwable) -> { if (throwable != null) { reconnectToResourceManager(new TaskManagerException("Failed to send initial slot report to ResourceManager.", throwable));