lhotari opened a new pull request #10304:
URL: https://github.com/apache/pulsar/pull/10304


   ### Motivation
   
   By default Log4J2 registers a shutdown hook which stops Log4J2 logging 
before the broker shutdown has completed. This makes it hard to diagnose issues 
in broker shutdown.
   There's an issue #10289 reported about problems in broker shutdown. This PR 
will also help to diagnose that issue.
   
   ### Modifications
   
   - add more logging to shutdown
   - pass `-Dlog4j.shutdownHookEnabled=false` option to broker and standalone 
startup
   - initiate Log4J2 shutdown manually by calling `LogManager.shutdown()` 
before the JVM exits
   - remove outdated code to flush Logback logger before shutdown
   - print the stacktraces for uncaught exceptions in the broker


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to