* Let's log the state of the thread to find out if it's dead-locked or just stuck after being suspended * Relates #43392
This commit is contained in:
parent
6b1e45b5b3
commit
1053a89b79
|
@ -373,7 +373,9 @@ public class MockNioTransport extends TcpTransport {
|
|||
final long elapsedTimeInNanos = threadPool.relativeTimeInNanos() - entry.getValue();
|
||||
if (elapsedTimeInNanos > warnThreshold) {
|
||||
final Thread thread = entry.getKey();
|
||||
logger.warn("Potentially blocked execution on network thread [{}] [{} milliseconds]: \n{}", thread.getName(),
|
||||
logger.warn("Potentially blocked execution on network thread [{}] [{}] [{} milliseconds]: \n{}",
|
||||
thread.getName(),
|
||||
thread.getState(),
|
||||
TimeUnit.NANOSECONDS.toMillis(elapsedTimeInNanos),
|
||||
Arrays.stream(thread.getStackTrace()).map(Object::toString).collect(Collectors.joining("\n")));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue