Logrotate script check after rotate
Bug #1025536 reported by
Volans
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
Triaged
|
Low
|
Unassigned | |||
5.1 |
Won't Fix
|
Low
|
Unassigned | |||
5.5 |
Triaged
|
Low
|
Unassigned | |||
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC | Status tracked in 5.6 | |||||
5.5 |
Confirmed
|
Medium
|
Unassigned | |||
5.6 |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Installing Percona Server 5.5 from the APT repository a Logrotate script is installed in /etc/logrotate.
The logrotate script do it's sanity checks only after the logs were rotated (in postrotate directive) and not in the prerotate directive.
With this configuration is possible that the log files were rotated by the logrotate script but the FLUSH LOGS command will not be executed in MySQL if the sanity checks do not passes.
tags: | added: pkg |
To post a comment you must log in.
The logic in the script being to rotate, and then flush logs only if mysql is up. Shouldn't this be fine? (otherwise if mysql is not up it may not rotate, if you check in prerotate etc.)