Noobgam opened a new pull request #481:
URL: https://github.com/apache/logging-log4j2/pull/481
When configured incorrectly, the ErrorHandler::error method will be called
very often. As an example of such behavior, you can try stopping the appender
manually.
This will result in `ErrorHandler::error("Attempted to append to non-started
appender {...}")` which may or may not be called often. In our scenario, this
happened ~4k-20k times per second. Although everything seems normal at first,
exceptionCount keeps getting incremented until it overflows after 2^31
increments.
When it increments, every such method call will enter the branch leading to
very high CPU consumption in useless code and a significant spike in
`System.out` throughput

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