Skip to content

Commit 43ed1d8

Browse files
CR: Stop netty leak logger on shutdown
1 parent 2d372cd commit 43ed1d8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/framework/src/main/java/org/elasticsearch/test/ESTestCase.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ public void append(LogEvent event) {
219219

220220
// shutdown hook so that when the test JVM exits, logging is shutdown too
221221
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
222+
leakAppender.stop();
222223
LoggerContext context = (LoggerContext) LogManager.getContext(false);
223224
Configurator.shutdown(context);
224225
}));

0 commit comments

Comments
 (0)