Project

General

Profile

Actions

Bug #8115

open

Log rotation doesn't work during zero traffic

Added by Abhijeet Singh about 7 hours ago. Updated about 6 hours ago.

Status:
In Review
Priority:
Normal
Assignee:
-
Target version:
Affected Versions:
Effort:
low
Difficulty:
Label:
C

Description

Log rotation checks (code link) only happen when there are active log "writes" happening in the system. In cases of zero-traffic, they may not get triggered because of which downstream processes waiting on log file close event miss out on time-critical logs.

There is a related bug (code link) that reopens the file twice if both the rotation flag is set and rotation time interval passed. This creates erroneous notifications for downstream processes that are using `inotify` kind of directory monitoring for file close events on the log files.

Actions #1

Updated by Abhijeet Singh about 7 hours ago

I can submit a pull request for a fix for above. Trying to figure out how to assign this bug to myself.

Actions #3

Updated by Abhijeet Singh about 6 hours ago

  • Status changed from New to In Review
Actions

Also available in: Atom PDF