/** {@inheritDoc} */ @Override public boolean evictExclude(IgfsPath path, boolean primary) { assert path != null; try { // Exclude all PRIMARY files + the ones specified in eviction policy as exclusions. return primary || evictPlc == null || evictPlc.exclude(path); } catch (IgniteCheckedException e) { LT.error(log, e, "Failed to check whether the path must be excluded from evictions: " + path); return false; } }
/** * Starts chain notification from head to tail. * * @param ses Session in which GridNioException was caught. * @param e IgniteCheckedException instance. */ @Override public void onExceptionCaught(GridNioSession ses, IgniteCheckedException e) { try { head.onExceptionCaught(ses, e); } catch (Exception ex) { LT.error(log, ex, "Failed to forward GridNioException to filter chain [ses=" + ses + ", e=" + e + ']'); } }
@Override public void apply(IgniteInternalFuture<?> t) { boolean rmv = activeFuts.remove(t); assert rmv; Throwable err = t.error(); if (err != null && !(err instanceof IgniteClientDisconnectedCheckedException)) { LT.error(log, t.error(), "DataStreamer operation failed.", true); failCntr.increment(); synchronized (DataStreamerImpl.this) { if(cancellationReason == null) cancellationReason = err; cancelled = true; } } } };
/** * @param msg Log message. * @param isLogExpected Is log expected or not. */ private void checkErrorNoThrowable(String msg, boolean isLogExpected) { LT.error(log0, null, msg); check(null, msg, isLogExpected); }
/** * @param eMsg Exception message. * @param msg Log message. * @param isLogExpected Is log expected or not. */ private void checkError(String eMsg, String msg, boolean isLogExpected) { Exception e = eMsg != null ? new RuntimeException(eMsg) : null; LT.error(log0, e, msg); check(e, msg, isLogExpected); }
LT.error(log, e, "Failed to get registered addresses from IP finder on start " + "(retrying every " + getReconnectDelay() + "ms; change 'reconnectDelay' to configure " + "the frequency of retries).");
LT.error(log, e, "Failed to get fragmentizer file info (will retry)."); else { if (log.isDebugEnabled())
LT.error(log, e, "Type of job context priority attribute '" + jobPriAttrKey + "' is not java.lang.Integer [type=" + jctx.getAttribute(jobPriAttrKey).getClass() + ']'); LT.error(log, e, "Type of task session priority attribute '" + taskPriAttrKey + "' is not java.lang.Integer [type=" + ses.getAttribute(taskPriAttrKey).getClass() + ']');
if (!scanCtx.isCancelled()) { if (X.hasCause(e, ConnectException.class)) { LT.error(scanCtx.getLogger(), e, "Failed to connect to HTTP server (connection refused): " + U.hidePassword(url.toString())); LT.error(scanCtx.getLogger(), e, "Failed to connect to HTTP server (host is unknown): " + U.hidePassword(url.toString()));
LT.error(log, e, "Unable to update underlying store: " + store);
LT.error(log, e, "Failed to do service reassignment (will retry): " + dep.configuration().getName());
if (!scanCtx.isCancelled()) { if (X.hasCause(e, ConnectException.class)) { LT.error(scanCtx.getLogger(), e, "Failed to connect to HTTP server " + "(connection refused): " + U.hidePassword(url)); LT.error(scanCtx.getLogger(), e, "Failed to connect to HTTP server " + "(host is unknown): " + U.hidePassword(url));
LT.error(log, e, "Failed to send/receive address message (will try to reconnect).");
LT.error(log, e, "Failed to clean IP finder up.");
LT.error(log, e, "Failed to deserialize multicast response.");
LT.error(log, ex, "Failed to do service reassignment (will retry): " + dep.configuration().getName());
LT.error(log, ex, "Partition eviction failed, this can cause grid hang.");
LT.error(log, e, "Failed to register local node address in IP finder on start " + "(retrying every " + spi.getReconnectDelay() + " ms; " + "change 'reconnectDelay' to configure the frequency of retries).");
LT.error(log, e, "Failed to get secondary file system consumed space size.");
X.hasCause(e, ClusterTopologyCheckedException.class)) { LT.error(log, e, "Failed to obtain remote job result policy for result from " + "ComputeTask.result(..) method (will fail the whole task): " + jobRes);