You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-dev@logging.apache.org by "Thorsten Schöning (JIRA)" <lo...@logging.apache.org> on 2014/02/10 16:49:19 UTC
[jira] [Resolved] (LOGCXX-306) FileAppender --- very aggressive
default file locking on Windows since moving to APR
[ https://issues.apache.org/jira/browse/LOGCXX-306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thorsten Schöning resolved LOGCXX-306.
--------------------------------------
Resolution: Won't Fix
This seems to be a problem of APR, I don't see how one get provide a share mode like that for CreateFile under Win32 to apr_file_open. But looking at the source of the function the following share mode is already applied and should be good enough for practical use:
DWORD sharemode = FILE_SHARE_READ | FILE_SHARE_WRITE;
http://svn.apache.org/repos/asf/apr/apr/trunk/file_io/win32/open.c
> FileAppender --- very aggressive default file locking on Windows since moving to APR
> ------------------------------------------------------------------------------------
>
> Key: LOGCXX-306
> URL: https://issues.apache.org/jira/browse/LOGCXX-306
> Project: Log4cxx
> Issue Type: Improvement
> Components: Appender
> Affects Versions: 0.10.0
> Environment: Windows XP SP2 on Intel Xeon
> Reporter: Allan Erskine
> Assignee: Curt Arnold
> Priority: Minor
>
> Since moving to APR, the file locking (or sharing attributes perhaps?) of FileAppender have become very aggressive.
> The end result is that when my application is logging intensively, I am unable to tail, copy, or grep the log file (it generates a permissions error!).
> In production environments, this can be a clear no-no --- perhaps this could be made configurable (eg if there were performance reasons behind the current way of doing things)
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)