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

   Fixes #17587
   
   ### Motivation
   
   Pulsar log file might not contain the last few log lines when the Pulsar 
process is abnormally terminated with Runtime.halt.
   
   ### Modifications
   
   - Add new utility method `ShutdownUtil.triggerImmediateForcefulShutdown` 
which calls Log4j2's LogManager.shutdown before terminating the process with 
Runtime.halt
   - Replace usages of `Runtime.halt` with 
`ShutdownUtil.triggerImmediateForcefulShutdown` in the Pulsar code base
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc-required` 
   (Your PR needs to update docs and you will update later)
   
   - [x] `doc-not-needed` 
   (Please explain why)
   
   - [ ] `doc` 
   (Your PR contains doc changes)
   
   - [ ] `doc-complete`
   (Docs have been already added)
   


-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to