[MXS-4225] /maxscale/logs/data endpoint returns less rows than expected using maxlog as the source Created: 2022-07-28  Updated: 2022-08-01  Resolved: 2022-08-01

Status: Closed
Project: MariaDB MaxScale
Component/s: REST-API
Affects Version/s: 6.4.1
Fix Version/s: 22.08.0

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


 Description   

If maxlog is used as the log source, the /v1/maxscale/logs/data endpoint would return less rows than requested if the log span it covers contained lines with the log footers or headers. This also caused the row numbering to not be sequential which could cause invalid cursor positions to be created.

The fix to this is to use the valid row count as the line numbers, not the actual line numbers in the file.


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