elasticsearch/qa/no-bootstrap-tests
Ryan Ernst 31abf3e00c
Make MockLogAppender threadsafe (#108206)
Adding and removing appenders in Log4j is not threadsafe. Yet some tests
rely on capturing logging by adding an in memory appender,
MockLogAppender. This commit makes the mock logging threadsafe by
creating a new, singular appender for mock logging that delegates, in a
threadsafe way, to the existing appenders created. Confusingly
MockLogAppender is no longer really an appender, but I'm leaving
clarifying that for a followup so as to limit the scope of this PR.

closes #106425
2024-05-08 15:38:38 -07:00
..
src/test/java/org/elasticsearch/bootstrap Make MockLogAppender threadsafe (#108206) 2024-05-08 15:38:38 -07:00
build.gradle Update sources with new SSPL+Elastic-2.0 license headers 2021-02-02 16:10:53 -08:00