[
https://issues.apache.org/jira/browse/LOG4J2-2972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17260601#comment-17260601
]
ASF subversion and git services commented on LOG4J2-2972:
---------------------------------------------------------
Commit 4a14b2d19fc4f4ff6673bf9e5eccc0e386760eab in logging-log4j2's branch
refs/heads/LOG4J2-2972 from Volkan Yazici
[ https://gitbox.apache.org/repos/asf?p=logging-log4j2.git;h=4a14b2d ]
LOG4J2-2972 Replace sync'ed with AtomicBoolean in AsyncAppenderEventForwarder.
> AsyncAppender thread gets killed with ThreadDeath exception
> -----------------------------------------------------------
>
> Key: LOG4J2-2972
> URL: https://issues.apache.org/jira/browse/LOG4J2-2972
> Project: Log4j 2
> Issue Type: Bug
> Affects Versions: 2.14.0
> Reporter: Volkan Yazici
> Assignee: Volkan Yazici
> Priority: Major
> Fix For: 3.0.0, 2.14.1
>
>
> The fix we have introduced ~1 month ago to avoid \{{AsyncAppender}} thread
> getting killed, [introduces another
> problem|https://github.com/apache/logging-log4j2/commit/56436ad2176eac000d2821690e4373f097b76670#commitcomment-44892412].
> In a nutshell, when the thread gets killed via \{{Thread#stop()}} it throws
> a \{{ThreadDeath}} exception which we unintentionally swallow, whereas the
> thread needs to be re-spawned again.
> This story aims to replace the custom \{{Thread}} usage with a
> single-threaded \{{Executor}}, which takes care of re-spawning.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)