diff --git a/test/framework/src/main/java/org/elasticsearch/common/logging/TestThreadInfoPatternConverter.java b/test/framework/src/main/java/org/elasticsearch/common/logging/TestThreadInfoPatternConverter.java index f6732c19eed4c..532b3884a934e 100644 --- a/test/framework/src/main/java/org/elasticsearch/common/logging/TestThreadInfoPatternConverter.java +++ b/test/framework/src/main/java/org/elasticsearch/common/logging/TestThreadInfoPatternConverter.java @@ -59,7 +59,7 @@ static String threadInfo(String threadName) { Matcher m = ELASTICSEARCH_THREAD_NAME_PATTERN.matcher(threadName); if (m.matches()) { // Thread looks like a node thread so use the node name - return m.group(1); + return threadName.substring(13); } m = TEST_THREAD_NAME_PATTERN.matcher(threadName); if (m.matches()) {