@Override public void apply(GridFuture<?> f) { try { f.get(); } catch (GridException e) { if (!F.isEmpty(excl)) for (Class cls : excl) if (e.hasCause(cls)) return; U.error(log, "Future execution resulted in error: " + f, e); } }
e instanceof GridTopologyException || e.hasCause(GridComputeJobFailoverException.class)) return FAILOVER;
if (!e.hasCause(GridTopologyException.class)) log.error("Failed to send streamer cancel request to remote node [nodeId=" + nodeId + ", cancelledFutId=" + cancelledFutId + ']', e);
/** * Sends response to remote node. * * @param nodeId Node ID to send response to. * @param msg Message to send. */ private void sendResponse(UUID nodeId, GridGgfsCommunicationMessage msg) { try { sendWithRetries(nodeId, msg); } catch (GridException e) { if (e.hasCause(GridTopologyException.class)) { if (log.isDebugEnabled()) log.debug("Failed to send sync response to GGFS fragmentizer coordinator " + "(originating node left the grid): " + nodeId); } else U.error(log, "Failed to send sync response to GGFS fragmentizer coordinator: " + nodeId, e); } } }
/** * Sends response to remote node. * * @param nodeId Node ID to send response to. * @param msg Message to send. */ private void sendResponse(UUID nodeId, GridGgfsCommunicationMessage msg) { try { sendWithRetries(nodeId, msg); } catch (GridException e) { if (e.hasCause(GridTopologyException.class)) { if (log.isDebugEnabled()) log.debug("Failed to send sync response to GGFS fragmentizer coordinator " + "(originating node left the grid): " + nodeId); } else U.error(log, "Failed to send sync response to GGFS fragmentizer coordinator: " + nodeId, e); } } }
if (e.hasCause(GridTopologyException.class)) { if (log.isDebugEnabled()) log.debug("Failed to send fragmentizer request to remote node (node left grid): " +
if (e.hasCause(GridTopologyException.class)) { if (log.isDebugEnabled()) log.debug("Failed to send fragmentizer request to remote node (node left grid): " +
if (e.hasCause(GridTopologyException.class)) { if (log.isDebugEnabled()) log.debug("Failed to send sync message to remote node (node has left the grid): " +
if (e.hasCause(GridTopologyException.class)) { if (log.isDebugEnabled()) log.debug("Failed to send sync message to remote node (node has left the grid): " +
if (!e.hasCause(GridInterruptedException.class)) U.warn(log, "Failed to wait for batch execution future completion (will ignore) " + "[execFut=" + execFut + ", e=" + e + ']');
U.error(log, "Caught exception on handshake [err=" + e +", sock=" + sock + ']', e); if (e.hasCause(SocketTimeoutException.class)) LT.warn(log, null, "Socket operation timed out on handshake " + "(consider increasing 'networkTimeout' configuration property) " + "[netTimeout=" + netTimeout + ']'); else if (e.hasCause(ClassNotFoundException.class)) LT.warn(log, null, "Failed to read message due to ClassNotFoundException " + "(make sure same versions of all classes are available on all nodes) " + else if (e.hasCause(ObjectStreamException.class) || (!sock.isClosed() && !e.hasCause(IOException.class))) LT.error(log, e, "Failed to initialize connection [sock=" + sock + ']'); return; if (e.hasCause(ClassNotFoundException.class)) LT.warn(log, null, "Failed to read message due to ClassNotFoundException " + "(make sure same versions of all classes are available on all nodes) " + boolean err = e.hasCause(ObjectStreamException.class) || (nodeAlive(nodeId) && spiStateCopy() == CONNECTED && !X.hasCause(e, IOException.class));
if (!e.hasCause(GridTopologyException.class)) log.error("Failed to complete parent stage [futId=" + futId + ", err=" + e + ']');
if (e.hasCause(SQLException.class)) throw new GridInternalException(e.getCause(SQLException.class).getMessage(), e);
/** * @param node Node to create client for. * @return Client. * @throws GridException If failed. */ @Nullable protected GridCommunicationClient createNioClient(GridNode node) throws GridException { assert node != null; Integer shmemPort = node.attribute(createSpiAttributeName(ATTR_SHMEM_PORT)); GridNode locNode = getSpiContext().localNode(); if (locNode == null) throw new GridException("Failed to create NIO client (local node is stopping)"); // If remote node has shared memory server enabled and has the same set of MACs // then we are likely to run on the same host and shared memory communication could be tried. if (shmemPort != null && U.sameMacs(locNode, node)) { try { return createShmemClient(node, shmemPort); } catch (GridException e) { if (e.hasCause(GridIpcOutOfSystemResourcesException.class)) // Has cause or is itself the GridIpcOutOfSystemResourcesException. LT.warn(log, null, OUT_OF_RESOURCES_TCP_MSG); else if (getSpiContext().node(node.id()) != null) LT.warn(log, null, e.getMessage()); else if (log.isDebugEnabled()) log.debug("Failed to establish shared memory connection with local node (node has left): " + node.id()); } } return createTcpClient(node); }
if (sysStopping && e.hasCause(GridInterruptedException.class, InterruptedException.class)) { ex = handleThrowable(e);
if (log.isDebugEnabled() || !e.hasCause(SQLException.class)) U.error(log, "Failed to run fields query [qry=" + qryInfo + ", node=" + cctx.nodeId() + ']', e); else { if (e.hasCause(SQLException.class)) U.error(log, "Failed to run fields query [node=" + cctx.nodeId() + ", msg=" + e.getCause(SQLException.class).getMessage() + ']');
if (e.hasCause(GridTopologyException.class)) { if (log.isDebugEnabled()) log.debug("Failed to process fragmentizer request (remote node left the grid) " +
if (e.hasCause(GridTopologyException.class)) { if (log.isDebugEnabled()) log.debug("Failed to process fragmentizer request (remote node left the grid) " +
if (e.hasCause(GridTopologyException.class, GridEmptyProjectionException.class)) U.warn(log, "Failed to execute task due to topology issues (are all mapped " + "nodes alive?) [name=" + name + ", clientId=" + req.clientId() +
if (e.hasCause(GridTopologyException.class)) { if (log.isDebugEnabled()) log.debug("Topology changed while deploying service (will retry): " + e.getMessage());