/** * Logs out warning message. * * @param msg Warning message. */ default void warning(String msg) { warning(msg, null); }
/** * Stops ping process. */ public void stop() { try { scheduler.cancel(); } catch (Exception e) { log.warning("Failed to cancel Zookeeper Pinger scheduler.", e); } } }
/** * Logs out warning message with optional exception. * The default implementation calls {@code this.warning(msg)}. * * @param marker Name of the marker to be associated with the message. * @param msg Warning message. * @param e Optional exception (can be {@code null}). */ default void warning(@Nullable String marker, String msg, @Nullable Throwable e) { warning(msg, e); }
/** {@inheritDoc} */ @Override public void warning(@Nullable String marker, String msg, @Nullable Throwable e) { impl.warning(marker, enrich(msg), e); }
/** * */ private void printProgress(int k) { if (k % 1000 == 0) log.warning("Keys -> " + k); }
/** {@inheritDoc} */ @Override public void warning(String msg) { impl.warning(enrich(msg)); }
/** {@inheritDoc} */ @Override public void warning(String msg, @Nullable Throwable e) { log.warning(format(msg), e); }
@Override public void apply(IgniteInternalFuture<?> fut) { try { // Make sure there were no errors. fut.get(); } catch (IgniteCheckedException e) { log.warning("Failed to send handshake message, will close session: " + ses, e); ses.close(); } } });
/** {@inheritDoc} */ @Override public GridNioFuture<?> onSessionWrite(GridNioSession ses, Object msg, boolean fut, IgniteInClosure<IgniteException> ackC) throws IgniteCheckedException { if (ses.meta(PROCESS_META) == null && !(msg instanceof ProcessHandshakeMessage)) log.warning("Writing message before handshake has finished [ses=" + ses + ", msg=" + msg + ']'); return proceedSessionWrite(ses, msg, fut, ackC); }
/** * @param ack Shuffle ack. */ public void onShuffleAck(HadoopShuffleAck ack) { IgniteBiTuple<HadoopShuffleMessage, GridFutureAdapter<?>> tup = sentMsgs.get(ack.id()); if (tup != null) tup.get2().onDone(); else log.warning("Received shuffle ack for not registered shuffle id: " + ack); }
/** {@inheritDoc} */ @Override protected boolean handle(Ignite ignite, FailureContext failureCtx) { if (this.failureCtx == null) { this.failureCtx = failureCtx; if (latch != null) latch.countDown(); ignite.log().warning("Handled ignite failure: " + failureCtx); } return invalidate; }
/** {@inheritDoc} */ @Override public void cancel() { synchronized (mux) { isCancelled = true; cancelCnt++; mux.notifyAll(); } log.warning("Job cancelled: " + jobCtx.getJobId()); } }
/** {@inheritDoc} */ @Override public ComputeJobResultPolicy result(ComputeJobResult res, List<ComputeJobResult> rcvd) { ComputeJobResultPolicy superRes = super.result(res, rcvd); // Deny failover. if (superRes == ComputeJobResultPolicy.FAILOVER) { superRes = ComputeJobResultPolicy.WAIT; log.warning("CollectPartitionEntryHashesJob failed on node " + "[consistentId=" + res.getNode().consistentId() + "]", res.getException()); } return superRes; }
/** {@inheritDoc} */ @Override public ComputeJobResultPolicy result(ComputeJobResult res, List<ComputeJobResult> rcvd) { ComputeJobResultPolicy superRes = super.result(res, rcvd); // Deny failover. if (superRes == ComputeJobResultPolicy.FAILOVER) { superRes = ComputeJobResultPolicy.WAIT; log.warning("VerifyBackupPartitionsJob failed on node " + "[consistentId=" + res.getNode().consistentId() + "]", res.getException()); } return superRes; }
/** {@inheritDoc} */ @Override public ComputeJobResultPolicy result(ComputeJobResult res, List<ComputeJobResult> rcvd) { ComputeJobResultPolicy superRes = super.result(res, rcvd); // Deny failover. if (superRes == ComputeJobResultPolicy.FAILOVER) { superRes = ComputeJobResultPolicy.WAIT; log.warning("RetrieveConflictValuesJob failed on node " + "[consistentId=" + res.getNode().consistentId() + "]", res.getException()); } return superRes; }
/** {@inheritDoc} */ @Override public void store(@Nullable String cacheName, Object key, Object val, long expirationTime) { if (err && ignite.name().endsWith("IgniteErrorOnRebalanceTest1")) { ignite.log().warning("Test error on store [cache=" + cacheName + ", key=" + key + ']'); throw new IgniteSpiException("Test error"); } }
/** * @param nodeId Node id. * @param res Response. */ private void processPartitionCountersResponse(UUID nodeId, PartitionCountersNeighborcastResponse res) { PartitionCountersNeighborcastFuture fut = ((PartitionCountersNeighborcastFuture)ctx.mvcc().future(res.futId())); if (fut == null) { log.warning("Failed to find future for partition counters response [futId=" + res.futId() + ", node=" + nodeId + ']'); return; } fut.onResult(nodeId); }
/** {@inheritDoc} */ @Override public void warning(String msg, @Nullable Throwable t) { if (echo != null) echo.warning(msg, t); applyListeners(msg); if (t != null) applyListeners(X.getFullStackTrace(t)); }
/** {@inheritDoc} */ @Override public void warning(String msg, Throwable e) { if (testSensitiveEnabled()) testSensitive(msg, e); impl.warning(enrich(msg), e); }
/** {@inheritDoc} */ @Override public void warning(String msg) { if (testSensitiveEnabled()) testSensitive(msg); impl.warning(enrich(msg)); }