Skip to content

Fixed early scan termination in query log parsing that skipped recent entries - #17

Merged
dominikhei merged 1 commit into
mainfrom
fix-query-log-parsing
Jul 24, 2026
Merged

Fixed early scan termination in query log parsing that skipped recent entries#17
dominikhei merged 1 commit into
mainfrom
fix-query-log-parsing

Conversation

@dominikhei

Copy link
Copy Markdown
Owner

parseLogFile broke out of the scan as soon as it hit an entry older
than the lookback cutoff. Query log files are append-only and thus
sorted oldest-first, so this often broke on the very first line and
silently skipped the rest of the file.

Replaced the break with a continue so old entries are skipped
individually instead of aborting the scan. This drops the early-exit
optimization in favor of correctness

Note: Makes sense to read the log file form the back in a future release

@dominikhei
dominikhei force-pushed the fix-query-log-parsing branch from 3532379 to d75ac20 Compare July 24, 2026 09:16
@dominikhei
dominikhei merged commit 17a0bbc into main Jul 24, 2026
3 checks passed
@dominikhei
dominikhei deleted the fix-query-log-parsing branch July 24, 2026 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant