Skip to content

Commit 239eb9e

Browse files
authored
Improve error message when resource leaks are detected in test clusters (#109996)
We throw an error when we detect resource leaks in cluster logs but we don't provide any indication of which cluster, or which log. This change logs the path to the log file in question so you can investigate.
1 parent e41a10e commit 239eb9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build-tools/src/main/java/org/elasticsearch/gradle/testclusters/ElasticsearchNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,7 @@ private void logFileContents(String description, Path from, boolean tailLogs) {
11391139
}
11401140
}
11411141
if (foundLeaks) {
1142-
throw new TestClustersException("Found resource leaks in node logs.");
1142+
throw new TestClustersException("Found resource leaks in node log: " + from);
11431143
}
11441144
}
11451145

0 commit comments

Comments
 (0)