Repository navigation
waid: store newsletter JIDs as integers in media IDs - #1083
Open
indent[bot] wants to merge 1 commit into
Open
indent[bot] wants to merge 1 commit into
indent[bot] wants to merge 1 commit into
Conversation
Contributor
Author
|
No issues found.
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
Event handling panicked4,598 in 24 h (prev 0) andPanic in backfill queue65 (prev 0), on all clusters, starting when encrypted direct media was enabled. Loki sample (four 15-minute windows on 4 clusters): 95 panics across at least 41 accounts and 23 channels, every one on a@newsletterchat (image/audio/video/sticker), withfailed to generate content URI: content URI too long (256..273 > 255). History sync for affected channels panics the same way and retries hourly without progress.Cause
compactJIDonly shortenss.whatsapp.netandg.us, soMakeMediaIDstores the newsletter JID as a raw string twice (chat and sender), giving a 110-124 byte media ID. Encrypted direct media adds an 8-byte random part to the URI, which pushes channel media past 255 characters, andconvertMediaMessagepanics on the error.Change
Newsletter JIDs are now stored as 8-byte integers (new compact type 4), the same way phone-number users are. A channel media ID drops by 42 bytes (110-116 to 68-74 in a live run), about 56 fewer URI characters. Existing raw-string media IDs still parse.
Before / after
Tested on a live account.
Event handling panicked: content URI too long (257 > 255); 0 of 11 postsTag
@indentto continue the conversation here.