/** * Checks reversing. */ private void checkReversing() { if (!keepGoing) U.warn(log, "Suspect logic - reversing listener return status (was 'true', then 'false', " + "now 'true' again)."); }
/** {@inheritDoc} */ @Override public void spiStart(@Nullable String gridName) throws GridSpiException { U.warn(log, "Swap space is disabled. To enable use GridFileSwapSpaceSpi."); }
/** {@inheritDoc} */ @Override public void onDisconnected(GridNioSession ses, @Nullable Exception e) { if (e != null) { if (e instanceof RuntimeException) U.error(log, "Failed to process request from remote client: " + ses, e); else U.warn(log, "Closed client session due to exception [ses=" + ses + ", msg=" + e.getMessage() + ']'); } }
/** {@inheritDoc} */ @Override public void onDisconnected(GridNioSession ses, @Nullable Exception e) { if (e != null) { if (e instanceof RuntimeException) U.error(log, "Failed to process request from remote client: " + ses, e); else U.warn(log, "Closed client session due to exception [ses=" + ses + ", err=" + e.getMessage() + ']'); } }
/** {@inheritDoc} */ @Override public void onSessionIdleTimeout(GridNioSession ses) { U.warn(log, "Closing NIO session because of idle."); ses.close(); }
/** {@inheritDoc} */ @Override public void onSessionWriteTimeout(GridNioSession ses) { U.warn(log, "Closing NIO session because of write timeout."); ses.close(); }
/** * @param e Network error to handle. * @return {@code True} if this error is recoverable and the operation can be retried. */ private boolean handleNetworkError(IOException e) { if ("Network is unreachable".equals(e.getMessage()) && U.isMacOs()) { U.warn(log, "Multicast does not work on Mac OS JVM loopback address (configure external IP address " + "for 'localHost' configuration property)"); return false; } return true; }
/** * Resend partition map. */ void resendPartitions() { try { refreshPartitions(0); } catch (GridInterruptedException e) { U.warn(log, "Partitions were not refreshed (thread got interrupted): " + e, "Partitions were not refreshed (thread got interrupted)"); } }
@Override public void body() { String jdkStrLow = U.jdkString().toLowerCase(); if (jdkStrLow.contains("jrockit") && jdkStrLow.contains("1.5.")) { U.warn(log, "BEA JRockit VM ver. 1.5.x has shown problems with NIO functionality in our " + "tests that were not reproducible in other VMs. We recommend using Sun VM. Should you " + "have further questions please contact us at support@gridgain.com", "BEA JRockit VM ver. 1.5.x is not supported."); } } });
/** * */ private void ackP2pConfiguration() { assert cfg != null; if (cfg.isPeerClassLoadingEnabled()) U.warn( log, "Peer class loading is enabled (disable it in production for performance and " + "deployment consistency reasons)", "Peer class loading is enabled (disable it for better performance)" ); }
/** {@inheritDoc} */ @Override protected GridSpiContext getSpiContext() { if (ctxInitLatch.getCount() != 0) { try { U.await(ctxInitLatch); } catch (GridInterruptedException ignored) { U.warn(log, "Thread has been interrupted while waiting for SPI context initialization."); } } return super.getSpiContext(); }
/** {@inheritDoc} */ @Override public GridJobWorker put(GridUuid key, GridJobWorker val) { assert !val.isInternal(); GridJobWorker old = super.put(key, val); if (old != null) U.warn(log, "Jobs map already contains mapping for key [key=" + key + ", val=" + val + ", old=" + old + ']'); return old; }
/** {@inheritDoc} */ @Override public GridJobWorker putIfAbsent(GridUuid key, GridJobWorker val) { assert !val.isInternal(); GridJobWorker old = super.putIfAbsent(key, val); if (old != null) U.warn(log, "Jobs map already contains mapping for key [key=" + key + ", val=" + val + ", old=" + old + ']'); return old; }
@Override public void body() { // Fix for GG-1075. if (F.isEmpty(U.allLocalMACs())) U.warn(log, "No live network interfaces detected. If IP-multicast discovery is used - " + "make sure to add 127.0.0.1 as a local address.", "No live network interfaces. Add 127.0.0.1 as a local address."); } });
/** * Checks that node has specified attribute and prints warning if it does not. * * @param node Node to check. * @param attrName Name of the attribute. */ private void checkAttributePresence(GridNode node, String attrName) { if (node.attribute(attrName) == null) U.warn(log, "Remote node has inconsistent configuration (required attribute was not found) " + "[attrName=" + attrName + ", nodeId=" + node.id() + "spiCls=" + U.getSimpleName(GridTcpCommunicationSpi.class) + ']'); }
/** {@inheritDoc} */ @Override public void onTimeout() { synchronized (mux) { if (state != State.WAITING) return; } U.warn(log, "Task has timed out: " + ses); recordTaskEvent(EVT_TASK_TIMEDOUT, "Task has timed out."); Throwable e = new GridComputeTaskTimeoutException("Task timed out (check logs for error messages): " + ses); finishTask(null, e); }
/** {@inheritDoc} */ @Override public void onTimeout() { if (finishing.get()) return; timedOut = true; U.warn(log, "Job has timed out: " + ses); cancel(); if (!internal && ctx.event().isRecordable(EVT_JOB_TIMEDOUT)) recordEvent(EVT_JOB_TIMEDOUT, "Job has timed out: " + job); }
@Override public void body() { // Sufficiently tested OS. if (!U.isSufficientlyTestedOs()) { U.warn(log, "This operating system has been tested less rigorously: " + U.osString() + ". Our team will appreciate the feedback if you experience any problems running " + "gridgain in this environment. You can always send your feedback to support@gridgain.com", "This OS is tested less rigorously: " + U.osString()); } } });
private void warnFirstEvict() { synchronized (this) { if (firstEvictWarn) return; firstEvictWarn = true; } U.warn(log, "Off-heap evictions started. You may wish to increase 'offHeapMaxMemory' in " + "cache configuration [cache=" + cctx.name() + ", offHeapMaxMemory=" + cctx.config().getOffHeapMaxMemory() + ']', "Off-heap evictions started: " + cctx.name()); } };
/** {@inheritDoc} */ @Override public GridNode failover(GridFailoverContext ctx, List<GridNode> top) { U.warn(log, "Returning 'null' node for failed job (failover will not happen) [job=" + ctx.getJobResult().getJob() + ", task=" + ctx.getTaskSession().getTaskName() + ", sessionId=" + ctx.getTaskSession().getId() + ']'); return null; }