[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:
Relates
relates to MXS-2050 make -query all log filter- logrotate... Closed

 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 MXS-3113.

Comment by markus makela [ 2020-08-20 ]

To test whether this is simply a symptom of MXS-3113, you could toggle the high-precision logging to force a log message to be generated. You can do this with the following commands:

maxctrl alter logging highprecision true
maxctrl alter logging highprecision false

This should cause messages like this to be logged:

2020-08-20 14:46:46.460   notice : highprecision logging is enabled.
2020-08-20 14:46:47   notice : highprecision logging is disabled.

Comment by markus makela [ 2020-10-19 ]

Closing this as potentially fixed by MXS-3113. hholzgra if you manage to reproduce this with the latest releases, please let us know and we'll reopen this issue.

Generated at Thu Feb 08 04:18:31 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.