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.
This commit is contained in:
Mark Vieira 2024-06-20 12:32:33 -07:00 committed by GitHub
parent e41a10ee1d
commit 239eb9e84c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1139,7 +1139,7 @@ public class ElasticsearchNode implements TestClusterConfiguration {
}
}
if (foundLeaks) {
throw new TestClustersException("Found resource leaks in node logs.");
throw new TestClustersException("Found resource leaks in node log: " + from);
}
}