private void expire() { try { task.timeout(); } catch (Throwable t) { if (Log.warnEnabled()) { Log.warn("task.timeout() failed: " + t.getMessage()); } } } }
private void expire() { try { task.timeout(); } catch (Throwable t) { if (Log.warnEnabled()) { Log.warn("task.timeout() failed: " + t.getMessage()); } } } }
public void expireTimeouts(long deadline) { HashedWheelTimeout timeout = head; // process all timeouts while (timeout != null) { HashedWheelTimeout next = timeout.next; if (timeout.remainingRounds <= 0) { next = remove(timeout); if (timeout.deadline > deadline) { // Should not happen. Do not throw exception because that would break all // other timeouts in this iteration. if (Log.warnEnabled()) { Log.warn("timeout.deadline (" + timeout.deadline + ") > deadline (" + deadline + ")"); } } timeout.expire(); } else { timeout.remainingRounds--; } timeout = next; } }
public void expireTimeouts(long deadline) { HashedWheelTimeout timeout = head; // process all timeouts while (timeout != null) { HashedWheelTimeout next = timeout.next; if (timeout.remainingRounds <= 0) { next = remove(timeout); if (timeout.deadline > deadline) { // Should not happen. Do not throw exception because that would break all // other timeouts in this iteration. if (Log.warnEnabled()) { Log.warn("timeout.deadline (" + timeout.deadline + ") > deadline (" + deadline + ")"); } } timeout.expire(); } else { timeout.remainingRounds--; } timeout = next; } }
if (Log.warnEnabled()) { Log.warn("Seed " + seed + " failed: " + Util.getErrorMessage(e));
if (Log.warnEnabled()) { Log.warn("Seed " + seed + " failed: " + Util.getErrorMessage(e));
if (Log.warnEnabled()) { Log.warn("Add node " + host + " failed: " + Util.getErrorMessage(e));
if (Log.warnEnabled()) { Log.warn("Add node " + host + " failed: " + Util.getErrorMessage(e));
private final void refreshFailed(Exception e) { failures++; if (! tendConnection.isClosed()) { tendConnection.close(); } // Only log message if cluster is still active. if (cluster.tendValid && Log.warnEnabled()) { Log.warn("Node " + this + " refresh failed: " + Util.getErrorMessage(e)); } }
private final void refreshFailed(Exception e) { failures++; if (! tendConnection.isClosed()) { tendConnection.close(); } // Only log message if cluster is still active. if (cluster.tendValid && Log.warnEnabled()) { Log.warn("Node " + this + " refresh failed: " + Util.getErrorMessage(e)); } }
if (Log.warnEnabled()) { Log.warn("Node remove mismatch. Expected " + nodeArray.length + " Received " + count);
if (Log.warnEnabled()) { Log.warn("Node remove mismatch. Expected " + nodeArray.length + " Received " + count);
public final void run() { while (tendValid) { // Tend cluster. try { tend(false); } catch (Exception e) { if (Log.warnEnabled()) { Log.warn("Cluster tend failed: " + Util.getErrorMessage(e)); } } // Sleep between polling intervals. Util.sleep(tendInterval); } }
public final void run() { while (tendValid) { // Tend cluster. try { tend(false); } catch (Exception e) { if (Log.warnEnabled()) { Log.warn("Cluster tend failed: " + Util.getErrorMessage(e)); } } // Sleep between polling intervals. Util.sleep(tendInterval); } }
@Override public void run() { while (true) { try { runCommands(); } catch (CloseException ce) { break; } catch (Exception e) { if (Log.warnEnabled()) { Log.warn("Event loop error: " + Util.getErrorMessage(e)); } // Backoff when unexpected errors occur. Util.sleep(100); } } close(); }
@Override public void run() { while (true) { try { runCommands(); } catch (CloseException ce) { break; } catch (Exception e) { if (Log.warnEnabled()) { Log.warn("Event loop error: " + Util.getErrorMessage(e)); } // Backoff when unexpected errors occur. Util.sleep(100); } } close(); }
if (Log.warnEnabled()) { Log.warn("Peer node " + peer.nodeName + " is different than actual node " + nv.name + " for host " + host); if (Log.warnEnabled()) { Log.warn("Add node " + host + " failed: " + Util.getErrorMessage(e));
if (Log.warnEnabled()) { Log.warn("Peer node " + peer.nodeName + " is different than actual node " + nv.name + " for host " + host); if (Log.warnEnabled()) { Log.warn("Add node " + host + " failed: " + Util.getErrorMessage(e));
if (Log.warnEnabled()) { Log.warn("Invalid lua type: " + source.type());
if (Log.warnEnabled()) { Log.warn("Invalid lua type: " + source.type());