if (delay >= DEBUG_DELAY_NANOS) {
if (delay > MAX_DELAY_NANOS) {
LOG.info("Capping {} throttle delay from {} to {} seconds", this,
- TimeUnit.NANOSECONDS.toSeconds(delay), MAX_DELAY_SECONDS);
+ TimeUnit.NANOSECONDS.toSeconds(delay), MAX_DELAY_SECONDS, new Throwable());
delay = MAX_DELAY_NANOS;
}
if (LOG.isDebugEnabled()) {
tasksTimedOut++;
queue.remove(now);
LOG.debug("{}: Connection {} timed out entry {}", context.persistenceId(), this, head);
+
+ final double time = (beenOpen * 1.0) / 1_000_000_000;
head.complete(head.getRequest().toRequestFailure(
- new RequestTimeoutException("Timed out after " + beenOpen + "ns")));
+ new RequestTimeoutException("Timed out after " + time + "seconds")));
}
LOG.debug("Connection {} timed out {} tasks", this, tasksTimedOut);