Message175359
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. |
|
Date |
User |
Action |
Args |
2012-11-11 12:38:21 | pconnell | set | recipients:
+ pconnell, vinay.sajip, pitrou, r.david.murray, serhiy.storchaka |
2012-11-11 12:38:21 | pconnell | set | messageid: <1352637501.24.0.768752389311.issue16449@psf.upfronthosting.co.za> |
2012-11-11 12:38:21 | pconnell | link | issue16449 messages |
2012-11-11 12:38:20 | pconnell | create | |
|