From 4121ac31cff5066171bdc8b307571ff57fd12d12 Mon Sep 17 00:00:00 2001 From: Yang Wang Date: Thu, 28 Nov 2024 16:11:18 +1100 Subject: [PATCH] thread name --- .../common/logging/TestThreadInfoPatternConverter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) {