[issue16449] RotatingFileHandler rollover doesn't work on QNX shmem filesystems

Phil Connell report at bugs.python.org
Sun Nov 11 13:38:21 CET 2012


Phil Connell added the comment:

I'm not convinced that it matters whether the rename or move is atomic. Can anyone come up with a quick concrete example?


I see two scenarios:

1. The process crashes during a copy in shutils.move(). In this case, some logs will be duplicated across the files involved in the copy.

2. Other threads emit logs during the rollover. Given that the IO lock is acquired in Handler.handle() before calling emit(), this is fine.


While the first case isn't ideal, I don't think there can be any loss of logs.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16449>
_______________________________________


More information about the Python-bugs-list mailing list