/** * Handle an error sending the prepared request. * * When a network error occurs, we close any existing fetch session on our next request, * and try to create a new session. * * @param t The exception. */ public void handleError(Throwable t) { log.info("Error sending fetch request {} to node {}: {}.", nextMetadata, node, t.toString()); nextMetadata = nextMetadata.nextCloseExisting(); } }
nextMetadata = FetchMetadata.INITIAL; } else { nextMetadata = nextMetadata.nextCloseExisting(); if (problem != null) { log.info("Node {} sent an invalid incremental fetch response with {}", node, problem); nextMetadata = nextMetadata.nextCloseExisting(); return false; } else if (response.sessionId() == INVALID_SESSION_ID) {