You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Davyd McColl (Jira)" <ji...@apache.org> on 2022/07/22 14:06:00 UTC
[jira] [Commented] (LOG4NET-681) RollingFileAppender thread safety issue
[ https://issues.apache.org/jira/browse/LOG4NET-681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17570046#comment-17570046 ]
Davyd McColl commented on LOG4NET-681:
--------------------------------------
I'm not sure if this is outdated because it's against log4net 1.x. However, I've been unable to reproduce (see https://github.com/apache/logging-log4net/commit/692eee8a6ca99bf6b1a8cd6b44d48614fe0e7b64 for the code I used - 128 concurrent threads doing 100 logs each to files limited in size to 64 bytes, so they roll over a lot, though where you're indicating is to do with rolling over time - which I've also observed, without issue). If this comes up again and you have a way to help me repro, please re-open.
> RollingFileAppender thread safety issue
> ----------------------------------------
>
> Key: LOG4NET-681
> URL: https://issues.apache.org/jira/browse/LOG4NET-681
> Project: Log4net
> Issue Type: Bug
> Components: Appenders
> Affects Versions: 1.2.10, 1.2.11, 1.2.12, 1.2.13, 1.2.14, 1.2.15
> Reporter: Tom Judge
> Priority: Major
>
> It seems there is a thread safety issue in :
> {code:java}
> protected void RollOverTime(bool fileIsOpen){code}
> Where the file can be closed outside of a critical section allowing another thread to attempt to write data on a closed file handle leading to this err:
> {code:java}
> log4net:ERROR [FileAppender] Attempted to append to closed appender named [].{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)