Skip to content

Commit

Permalink
Merge pull request #41724 from gsmet/clear-vertxmdc-threadlocal
Browse files Browse the repository at this point in the history
Clear the VertxMDC ThreadLocal when shutting down Vert.x
  • Loading branch information
gsmet committed Jul 6, 2024
2 parents 5ab89e9 + c59049c commit 39a3331
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ public void handle(AsyncResult<Void> ar) {
Thread.currentThread().interrupt();
throw new IllegalStateException("Exception when closing Vert.x instance", e);
}
VertxMDC.INSTANCE.clear();
LateBoundMDCProvider.setMDCProviderDelegate(null);
vertx = null;
}
Expand Down

0 comments on commit 39a3331

Please sign in to comment.