Item12950: PlainFile Logger runs out of time during rotation of large log files.

pencil
Priority: Urgent
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Extension
Component: FoswikiLogger
Branches: trunk
Reported By: GeorgeClark
Waiting For: GeorgeClark
Last Change By: GeorgeClark
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

 

ItemTemplate edit

Summary PlainFile Logger runs out of time during rotation of large log files.
ReportedBy GeorgeClark
Codebase 1.1.9, trunk
SVN Range
AppliesTo Extension
Component FoswikiLogger
Priority Urgent
CurrentState Closed
WaitingFor GeorgeClark
Checkins distro:96ed61397e70 distro:ba7e7dde9e10
TargetRelease major
ReleasedIn 2.0.0
CheckinsOnBranches trunk
trunkCheckins distro:96ed61397e70 distro:ba7e7dde9e10
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r4 - 18 Jul 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy