-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Stop getting missing prev_events
after we already know their signature is invalid
#13816
Commits on Sep 14, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 924ae2b - Browse repository at this point
Copy the full SHA 924ae2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for d240aeb - Browse repository at this point
Copy the full SHA d240aebView commit details -
Configuration menu - View commit details
-
Copy full SHA for cfb4e88 - Browse repository at this point
Copy the full SHA cfb4e88View commit details
Commits on Sep 15, 2022
-
Stop getting missing prev_events after we already know their signatur…
…e is invalid Related to - #13622 - #13635 - #13676 Follow-up to #13815 which tracks event signature failures. This PR aims to stop us from trying to `_get_state_ids_after_missing_prev_event` after we already know that the prev_event will fail from a previous attempt To explain an exact scenario around `/messages` -> backfill, we call `/backfill` and first check the signatures of the 100 events. We see bad signature for `$luA4l7QHhf_jadH3mI-AyFqho0U2Q-IXXUbGSMq6h6M` and `$zuOn2Rd2vsC7SUia3Hp3r6JSkSFKcc5j3QTTqW_0jDw` (both member events). Then we process the 98 events remaining that have valid signatures but one of the events references `$luA4l7QHhf_jadH3mI-AyFqho0U2Q-IXXUbGSMq6h6M` as a `prev_event`. So we have to do the whole `_get_state_ids_after_missing_prev_event` rigmarole which pulls in those same events which fail again because the signatures are still invalid. - `backfill` - `outgoing-federation-request` `/backfill` - `_check_sigs_and_hash_and_fetch` - `_check_sigs_and_hash_and_fetch_one` for each event received over backfill - ❗ `$luA4l7QHhf_jadH3mI-AyFqho0U2Q-IXXUbGSMq6h6M` fails with `Signature on retrieved event was invalid.`: `unable to verify signature for sender domain xxx: 401: Failed to find any key to satisfy: _FetchKeyRequest(...)` - ❗ `$zuOn2Rd2vsC7SUia3Hp3r6JSkSFKcc5j3QTTqW_0jDw` fails with `Signature on retrieved event was invalid.`: `unable to verify signature for sender domain xxx: 401: Failed to find any key to satisfy: _FetchKeyRequest(...)` - `_process_pulled_events` - `_process_pulled_event` for each validated event - ❗ Event `$Q0iMdqtz3IJYfZQU2Xk2WjB5NDF8Gg8cFSYYyKQgKJ0` references `$luA4l7QHhf_jadH3mI-AyFqho0U2Q-IXXUbGSMq6h6M` as a `prev_event` which is missing so we try to get it - `_get_state_ids_after_missing_prev_event` - `outgoing-federation-request` `/state_ids` - ❗ `get_pdu` for `$luA4l7QHhf_jadH3mI-AyFqho0U2Q-IXXUbGSMq6h6M` which fails the signature check again - ❗ `get_pdu` for `$zuOn2Rd2vsC7SUia3Hp3r6JSkSFKcc5j3QTTqW_0jDw` which fails the signature check With this PR, we no longer call the burdensome `_get_state_ids_after_missing_prev_event` because the signature failure will count as an attempt before we try to run this.
Configuration menu - View commit details
-
Copy full SHA for 9b390a3 - Browse repository at this point
Copy the full SHA 9b390a3View commit details
Commits on Sep 23, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 3d8507d - Browse repository at this point
Copy the full SHA 3d8507dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 88a75cf - Browse repository at this point
Copy the full SHA 88a75cfView commit details
Commits on Sep 24, 2022
-
Configuration menu - View commit details
-
Copy full SHA for d29ac0b - Browse repository at this point
Copy the full SHA d29ac0bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 14e39ee - Browse repository at this point
Copy the full SHA 14e39eeView commit details
Commits on Sep 30, 2022
-
Be more selective about which errors to care about
See #13815 (comment) So wes can avoid things like `CancelledError` which is a valid error but probably should not count as an error
Configuration menu - View commit details
-
Copy full SHA for 7898371 - Browse repository at this point
Copy the full SHA 7898371View commit details -
Configuration menu - View commit details
-
Copy full SHA for 43f1d1a - Browse repository at this point
Copy the full SHA 43f1d1aView commit details -
Merge branch 'madlittlemods/13700-track-when-event-signature-fails' i…
…nto madlittlemods/13622-13700-stop-getting-state-ids-after-missing-prev-event-if-we-tried-to-get-this-event-recently Conflicts: synapse/storage/databases/main/event_federation.py
Configuration menu - View commit details
-
Copy full SHA for e32b901 - Browse repository at this point
Copy the full SHA e32b901View commit details
Commits on Oct 1, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 83feb1b - Browse repository at this point
Copy the full SHA 83feb1bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d102e8 - Browse repository at this point
Copy the full SHA 7d102e8View commit details -
Merge branch 'madlittlemods/13700-track-when-event-signature-fails' i…
…nto madlittlemods/13622-13700-stop-getting-state-ids-after-missing-prev-event-if-we-tried-to-get-this-event-recently Conflicts: synapse/storage/databases/main/event_federation.py
Configuration menu - View commit details
-
Copy full SHA for 81410b6 - Browse repository at this point
Copy the full SHA 81410b6View commit details
Commits on Oct 3, 2022
-
Merge branch 'develop' into madlittlemods/13622-13700-stop-getting-st…
…ate-ids-after-missing-prev-event-if-we-tried-to-get-this-event-recently
Configuration menu - View commit details
-
Copy full SHA for 958fd3b - Browse repository at this point
Copy the full SHA 958fd3bView commit details
Commits on Oct 4, 2022
-
Configuration menu - View commit details
-
Copy full SHA for e24db41 - Browse repository at this point
Copy the full SHA e24db41View commit details -
Configuration menu - View commit details
-
Copy full SHA for f853e78 - Browse repository at this point
Copy the full SHA f853e78View commit details -
Configuration menu - View commit details
-
Copy full SHA for 43fb6b8 - Browse repository at this point
Copy the full SHA 43fb6b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 03f23b7 - Browse repository at this point
Copy the full SHA 03f23b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 99d3e79 - Browse repository at this point
Copy the full SHA 99d3e79View commit details -
Configuration menu - View commit details
-
Copy full SHA for f11f5b5 - Browse repository at this point
Copy the full SHA f11f5b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6878faa - Browse repository at this point
Copy the full SHA 6878faaView commit details
Commits on Oct 5, 2022
-
Configuration menu - View commit details
-
Copy full SHA for f3b443d - Browse repository at this point
Copy the full SHA f3b443dView commit details -
Configuration menu - View commit details
-
Copy full SHA for d135d41 - Browse repository at this point
Copy the full SHA d135d41View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4effca9 - Browse repository at this point
Copy the full SHA 4effca9View commit details -
Configuration menu - View commit details
-
Copy full SHA for e3cc054 - Browse repository at this point
Copy the full SHA e3cc054View commit details -
Configuration menu - View commit details
-
Copy full SHA for 74f9e03 - Browse repository at this point
Copy the full SHA 74f9e03View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b900e1 - Browse repository at this point
Copy the full SHA 0b900e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3cb2826 - Browse repository at this point
Copy the full SHA 3cb2826View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f313df - Browse repository at this point
Copy the full SHA 5f313dfView commit details
Commits on Oct 12, 2022
-
Merge branch 'develop' into madlittlemods/13622-13700-stop-getting-st…
…ate-ids-after-missing-prev-event-if-we-tried-to-get-this-event-recently
Configuration menu - View commit details
-
Copy full SHA for 02e6bdd - Browse repository at this point
Copy the full SHA 02e6bddView commit details -
Also can pass multiple event_ids, see #13816 (comment)
Configuration menu - View commit details
-
Copy full SHA for 7f4fdd2 - Browse repository at this point
Copy the full SHA 7f4fdd2View commit details -
Make sure usages of _compute_event_context_with_maybe_missing_prevs h…
…andle FederationPullAttemptBackoffError See #13816 (comment)
Configuration menu - View commit details
-
Copy full SHA for 89ffbcb - Browse repository at this point
Copy the full SHA 89ffbcbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 354f682 - Browse repository at this point
Copy the full SHA 354f682View commit details -
Do the calculation in Python because it's more clear when we need res…
…ults for all given events anyway See #13816 (comment)
Configuration menu - View commit details
-
Copy full SHA for e0b0447 - Browse repository at this point
Copy the full SHA e0b0447View commit details -
Configuration menu - View commit details
-
Copy full SHA for e72c4e5 - Browse repository at this point
Copy the full SHA e72c4e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e08039 - Browse repository at this point
Copy the full SHA 4e08039View commit details -
Configuration menu - View commit details
-
Copy full SHA for b060652 - Browse repository at this point
Copy the full SHA b060652View commit details -
Configuration menu - View commit details
-
Copy full SHA for b1a0c1b - Browse repository at this point
Copy the full SHA b1a0c1bView commit details
Commits on Oct 15, 2022
-
Use more standard string interpolation with
logger
Co-authored-by: Erik Johnston <erik@matrix.org>
Configuration menu - View commit details
-
Copy full SHA for bccd802 - Browse repository at this point
Copy the full SHA bccd802View commit details