Reset context class loader for new thread (#2691)

This commit is contained in:
Lauri Tulmin 2021-04-02 02:29:11 +03:00 committed by GitHub
parent 255c7eeb28
commit 949d82fbef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ class SupportabilityMetrics {
runnable -> {
Thread result = new Thread(runnable, "supportability_metrics_reporter");
result.setDaemon(true);
result.setContextClassLoader(null);
return result;
})
.scheduleAtFixedRate(this::report, 5, 5, TimeUnit.SECONDS);