Repository navigation
loki: avoid skipping delayed logs and entries at page boundaries - #4835
francescogionghi wants to merge 1 commit into
Conversation
|
@francescogionghi: There are no 'kind' label on this PR. You need a 'kind' label to generate the release automatically.
DetailsI am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the BirthdayResearch/oss-governance-bot repository. |
|
@francescogionghi: There are no area labels on this PR. You can add as many areas as you see fit.
DetailsI am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the BirthdayResearch/oss-governance-bot repository. |
|
/kind fix |
047ccc0 to
9bc8db6
Compare
Loki can skip late logs and entries at page boundaries. Windowing and deduplication must change together to avoid gaps and duplicates; one paginator now serves streaming and replay.
What and why
query_delay: 5sandpoll_interval: 1sby default. This adds detection latency; replay keeps a fixed end and does not wait between pages.query_delayapplies toquery_range; the existingdelay_forremains a separate WebSocket-tail option.Logs arriving later than
query_delaycan still be missed. If Loki rejects a larger page needed for timestamp ties, the reader reports the failure instead of skipping those records.Related: #4498, #4501, #3690; #4757 discusses request timeouts.
How it was tested
TEST_LOCAL_ONLY=1 go test -buildvcs=false -race ./pkg/acquisition/modules/loki/... -count=1 -timeout=90s: passed on master and a v1.8.1 backport. Container-dependent integration tests excluded.make lint: passed on Linux, Windows and FreeBSD with golangci-lint 2.13.0.Checklist
cscli -o json|rawoutput.AI assistance used: mostly.