You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/09/12 11:37:32 UTC

[GitHub] [pulsar] lhotari opened a new issue, #17587: [Bug] Pulsar logs are truncated when logging to files and Pulsar runs out of direct memory

lhotari opened a new issue, #17587:
URL: https://github.com/apache/pulsar/issues/17587

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.
   
   
   ### Version
   
   2.10.x
   
   ### Minimal reproduce step
   
   It's possible to reproduce the issue when running Pulsar in a configuration where Pulsar logs to log files. (a VM based deployment). To reproduce, configure the direct memory to a low value and stress the broker with sufficient load so that the direct memory runs out
   
   ### What did you expect to see?
   
   the Pulsar logs should be writted to disk before Pulsar exits the Java process
   
   ### What did you see instead?
   
   Pulsar log files are truncated and don't contain the last logged lines
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] I'm willing to submit a PR!


-- 
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: commits-unsubscribe@pulsar.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] lhotari closed issue #17587: [Bug] Pulsar logs are truncated when logging to files and Pulsar runs out of direct memory when -Dpulsar.allocator.exit_on_oom=true

Posted by GitBox <gi...@apache.org>.
lhotari closed issue #17587: [Bug] Pulsar logs are truncated when logging to files and Pulsar runs out of direct memory when -Dpulsar.allocator.exit_on_oom=true
URL: https://github.com/apache/pulsar/issues/17587


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] lhotari commented on issue #17587: [Bug] Pulsar logs are truncated when logging to files and Pulsar runs out of direct memory when -Dpulsar.allocator.exit_on_oom=true

Posted by GitBox <gi...@apache.org>.
lhotari commented on issue #17587:
URL: https://github.com/apache/pulsar/issues/17587#issuecomment-1243617445

   It seems that `LogManager.shutdown();` should be called before `Runtime.getRuntime().halt` is called in the Pulsar code base.


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org