[MXS-3039] qlafilter does not write to new log file after log rotation Created: 2020-06-15 Updated: 2021-12-14 Resolved: 2020-10-19 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | N/A |
| Affects Version/s: | None |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Hartmut Holzgraefe | Assignee: | markus makela |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
qlafilter log can be rotated by renaming the log file and then doing maxadmin flush or maxctrl rotate, but apparently sometimes nothing gets written to the new log file anymore. |
| Comments |
| Comment by markus makela [ 2020-07-03 ] | ||||
|
Looking at the QLAFilter log rotation implementation, it relies on a constant stream of queries to properly rotate the file. This would mean that if a system is completely idle and a log rotation is done, the qlafilter would not rotate the logs. The fact that the logs are rotated with maxctrl rotate logs isn't documented in the filter documentation. This should be documented along with the fact that the rotation will only take place when the next message is written. | ||||
| Comment by Hartmut Holzgraefe [ 2020-07-15 ] | ||||
|
The problem here seems to have been different, messages were written before the rotation, but after rotation with maxctrl rotate logging just stopped. The logfaile stayed at 0 byte size even though further entries should have happened ... | ||||
| Comment by markus makela [ 2020-08-18 ] | ||||
|
Could be related to | ||||
| Comment by markus makela [ 2020-08-20 ] | ||||
|
To test whether this is simply a symptom of
This should cause messages like this to be logged:
| ||||
| Comment by markus makela [ 2020-10-19 ] | ||||
|
Closing this as potentially fixed by |