LT.warn(log, "Timed out waiting for message delivery receipt (most probably, the reason is " + "in long GC pauses on remote node; consider tuning GC and increasing 'ackTimeout' " + "configuration property). Will retry to send message with increased timeout " +
/** * @param grp Cache group. */ GridDhtPartitionSupplier(CacheGroupContext grp) { assert grp != null; this.grp = grp; log = grp.shared().logger(getClass()); top = grp.topology(); if (rebalanceThrottleOverride > 0) LT.info(log, "Using rebalance throttle override: " + rebalanceThrottleOverride); }
/** {@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; } }
LT.throttleTimeout(1000); checkWarn("Test - without throwable 1.", false); Thread.sleep(LT.throttleTimeout() * 2); info("Slept for throttle timeout: " + LT.throttleTimeout() * 2); checkWarn("Test - without throwable.", false); LT.throttleTimeout(200); Thread.sleep(LT.throttleTimeout() * 2); info("Slept for throttle timeout: " + LT.throttleTimeout() * 2); for (int i = 1; i <= LT.throttleCapacity(); i++) checkInfo("Test info message " + i, true);
/** * {@inheritDoc} * <p> * Do not annotate with Before in overriding methods.</p> * @deprecated This method is deprecated. Instead of invoking or overriding it, it is recommended to make your own * method with {@code @Before} annotation. */ @Deprecated @Override protected void setUp() throws Exception { stopGridErr = false; clsLdr = Thread.currentThread().getContextClassLoader(); // Change it to the class one. Thread.currentThread().setContextClassLoader(getClass().getClassLoader()); // Clear log throttle. LT.clear(); info(">>> Starting test: " + testDescription() + " <<<"); try { beforeTest(); } catch (Exception | Error t) { try { tearDown(); } catch (Exception e) { log.error("Failed to tear down test after exception was thrown in beforeTest (will ignore)", e); } throw t; } ts = System.currentTimeMillis(); }
/** * 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 + ']'); } }
/** * @param ackTimeout Acknowledgement timeout. * @return {@code True} if acknowledgement timeout is less or equal to * maximum acknowledgement timeout, {@code false} otherwise. */ protected boolean checkAckTimeout(long ackTimeout) { if (ackTimeout > spi.getMaxAckTimeout()) { LT.warn(log, "Acknowledgement timeout is greater than maximum acknowledgement timeout " + "(consider increasing 'maxAckTimeout' configuration property) " + "[ackTimeout=" + ackTimeout + ", maxAckTimeout=" + spi.getMaxAckTimeout() + ']'); return false; } return true; }
@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 checkInfo(String msg, boolean isLogExpected) { LT.info(log0, msg); check(null, msg, isLogExpected); }
/** * @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); }
if (checkMd5 && unitDeployed(newDesc.getMd5())) { if (log.isInfoEnabled()) LT.info(log, "Skipping new deployment unit because of md5 match " + "[uri='" + U.hidePassword(newDesc.getUri()) + "', file=" + (newDesc.getFile() == null ? "N/A" : newDesc.getFile()) + ']'); LT.info(log, "Class loader (re)registered [clsLdr=" + newDesc.getClassLoader() + ", tstamp=" + newDesc.getTimestamp() + ", uri='" + U.hidePassword(newDesc.getUri()) +
/** * @param c Closure to run. */ void runInWorkerThread(Runnable c) { IgniteThreadPoolExecutor pool; synchronized (stateMux) { if (connState == ConnectionState.STOPPED) { LT.warn(log, "Do not run closure, node is stopped."); return; } if (utilityPool == null) { utilityPool = new IgniteThreadPoolExecutor("zk-discovery-pool", igniteInstanceName, 0, 1, 2000, new LinkedBlockingQueue<Runnable>()); } pool = utilityPool; } pool.submit(c); }
LT.warn(log, "Failed to read message due to ClassNotFoundException " + "(make sure same versions of all classes are available on all nodes) " + "[rmtNodeId=" + rmtNodeId + ", err=" + clsNotFoundEx.getMessage() + ']'); else LT.error(log, e, "Failed to read message [sock=" + sock + ", locNodeId=" + getLocalNodeId() + ", rmtNodeId=" + rmtNodeId + ']');
/** * @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); }
/** {@inheritDoc} */ @Override public void onTimeout() { if (done.compareAndSet(false, true)) { // Close socket - timeout occurred. U.closeQuiet(sock); LT.warn(log, "Socket write has timed out (consider increasing " + (failureDetectionTimeoutEnabled() ? "'IgniteConfiguration.failureDetectionTimeout' configuration property) [" + "failureDetectionTimeout=" + failureDetectionTimeout() : "'sockTimeout' configuration property) [sockTimeout=" + sockTimeout) + ", rmtAddr=" + sock.getRemoteSocketAddress() + ", rmtPort=" + sock.getPort() + ", sockTimeout=" + sockTimeout + ']'); stats.onSocketTimeout(); } }
LT.warn(log, "Failed to read magic header (too few bytes received) [rmtAddr=" + rmtAddr + ", locAddr=" + sock.getLocalSocketAddress() + ']'); LT.warn(log, "Unknown connection detected (is some other software connecting to " + "this Ignite port?" + (!spi.isSslEnabled() ? " missing SSL configuration on remote node?" : "" ) + LT.warn(log, "Failed to initialize connection " + "(missing SSL configuration on remote node?) " + "[rmtAddr=" + sock.getInetAddress() + ']', true); && !spi.isNodeStopping0()) { if (U.isMacInvalidArgumentError(e)) LT.error(log, e, "Failed to initialize connection [sock=" + sock + "]\n\t" + U.MAC_INVALID_ARG_MSG); else { LT.warn(log, "Socket operation timed out on handshake " + "(consider increasing 'networkTimeout' configuration property) " + "[netTimeout=" + spi.netTimeout + ']'); LT.warn(log, "Failed to read message due to ClassNotFoundException " + "(make sure same versions of all classes are available on all nodes) " + "[rmtAddr=" + rmtAddr + LT.error(log, e, "Failed to initialize connection [sock=" + sock + ']'); LT.warn(log, "Failed to read message due to ClassNotFoundException " + "(make sure same versions of all classes are available on all nodes) " +