Item12950: PlainFile Logger runs out of time during rotation of large log files.
Priority: Urgent
Current State: Closed
Released In: 2.0.0
Target Release: major
This is a longstanding issue. The
PlainFile rotate code copies the logfile record by record, splitting it into older logfiles during the rotate.
On busy systems, this is an impossible strategy. Foswiki.org never is able to rotate it's logs.
Rewrite the rotate code to lock the file and do a simple rename of the file to the new name. The issue with this strategy is that if the logfile contains records for multiple months, they won't get split into separate files. It's better to possibly require a manual fixup of the log files than to kill the server attempting to resolve it while logging a web transaction. And as long as the rotate process is reliable, that shouldn't be necessary anyway.
--
GeorgeClark - 28 Jun 2014
Whoops. Fixed in Foswiki 2.0, missed it in the release notes.
--
Main.GeorgeClark - 18 Jul 2015 - 02:33