Repository navigation
backfill: drop history sync notifications that keep failing to download - #1086
Open
indent[bot] wants to merge 4 commits into
Open
indent[bot] wants to merge 4 commits into
indent[bot] wants to merge 4 commits into
Conversation
Contributor
Author
|
All clear! No issues remaining. 🎉 1 issue already resolved
All required CI checks passed on
Select any unchecked box below to run or rerun that agent. Full resultsIndent Review Agent
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Logs
Failed to download history sync758 in 24 h (prev 2). Nearly all of it is one account retrying once a minute since Nov 21 17:00 UTC. Loki sample (15 min, at least 1 account): the sameFULLchunk 37 (progress 79) fails every minute withfailed to decompress: unexpected EOF.Cause
DownloadHistorySyncchecks the blob hashes before decompressing, so the payload itself is truncated and retrying can't succeed.historySyncLoopalways takes the oldest queued notification and only deletes it on 403/404/410. This notification is retried forever, and every later chunk waits behind it.Change
The loop counts consecutive failures for the same queued notification, but only failures showing the blob itself is bad (hash/HMAC mismatch, or truncated/corrupt zlib data after a complete download). After 10 of those (~10 min) it logs an error and drops the notification, so the later chunks get processed. Network errors, 5xx, disconnects and DB/handling failures don't count and reset the streak, so an outage never drops a downloadable chunk.
Before / after
Note: not tested against a live account.
failed to decompress: unexpected EOF) queued before 2 good chunksTag
@indentto continue the conversation here.