[MXS-4602] Qlafilter logs responses from non-matched queries Created: 2023-04-27  Updated: 2023-05-08  Resolved: 2023-05-08

Status: Closed
Project: MariaDB MaxScale
Component/s: qlafilter
Affects Version/s: 6.4.6, 22.08.5, 23.02.1
Fix Version/s: 6.4.7, 22.08.6, 23.02.2

Type: Bug Priority: Major
Reporter: markus makela Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MXS-4551 qlafilter with options=extended does ... Closed

 Description   

If the filter is configured with match=/something|anything/ and the following SQL is executed:

SELECT 'nothing';
SELECT 'something';
SELECT 'everything';
SELECT 'anything';

The log should only contain lines for the second and fourth queries. The actual result is that the second query is repeated twice after which the fourth query is logged. In addition, there is an empty line that is similar tothe ones in MXS-4551.

Date,User@Host,Query
,skysql@::ffff:192.168.122.1,
2023-04-27 13:15:42,skysql@::ffff:192.168.122.1,SELECT 'something'
2023-04-27 13:15:42,skysql@::ffff:192.168.122.1,SELECT 'something'
2023-04-27 13:15:42,skysql@::ffff:192.168.122.1,SELECT 'anything'


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