Include the name of the calling thread when a command times out.

This commit is contained in:
Jon Chambers authored and Jon Chambers committed 2020-11-11 13:05:35 -05:00
1 parent 325e65db7f
commit fb9aa672c9
2 files changed
+2 -2

No files matched your search

@@ -97,7 +97,7 @@ public class FaultTolerantPubSubConnection<K, V> {
private void recordCommandTimeout(final RedisCommandTimeoutException e) {
commandTimeoutMeter.mark();
log.warn("Command timeout exception ({}-pubsub)", this.name, e);
log.warn("[{}] Command timeout exception ({}-pubsub)", Thread.currentThread().getName(), this.name, e);
if (wroteThreadDump.compareAndSet(false, true)) {
ThreadDumpUtil.writeThreadDump();
@@ -163,7 +163,7 @@ public class FaultTolerantRedisCluster {
private void recordCommandTimeout(final RedisCommandTimeoutException e) {
commandTimeoutMeter.mark();
log.warn("Command timeout exception ({})", this.name, e);
log.warn("[{}] Command timeout exception ({})", Thread.currentThread().getName(), this.name, e);
if (wroteThreadDump.compareAndSet(false, true)) {
ThreadDumpUtil.writeThreadDump();