Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commits on Sep 14, 2022

  1. Configuration menu
    Copy the full SHA
    924ae2b View commit details
    Browse the repository at this point in the history
  2. Add changelog

    MadLittleMods committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    d240aeb View commit details
    Browse the repository at this point in the history
  3. Fix reference

    MadLittleMods committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    cfb4e88 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2022

  1. 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.
    MadLittleMods committed Sep 15, 2022
    Configuration menu
    Copy the full SHA
    9b390a3 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2022

  1. Configuration menu
    Copy the full SHA
    3d8507d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    88a75cf View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2022

  1. Add docstring

    MadLittleMods committed Sep 24, 2022
    Configuration menu
    Copy the full SHA
    d29ac0b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    14e39ee View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2022

  1. 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
    MadLittleMods committed Sep 30, 2022
    Configuration menu
    Copy the full SHA
    7898371 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    43f1d1a View commit details
    Browse the repository at this point in the history
  3. 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
    MadLittleMods committed Sep 30, 2022
    Configuration menu
    Copy the full SHA
    e32b901 View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2022

  1. Configuration menu
    Copy the full SHA
    83feb1b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7d102e8 View commit details
    Browse the repository at this point in the history
  3. 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
    MadLittleMods committed Oct 1, 2022
    Configuration menu
    Copy the full SHA
    81410b6 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2022

  1. Merge branch 'develop' into madlittlemods/13622-13700-stop-getting-st…

    …ate-ids-after-missing-prev-event-if-we-tried-to-get-this-event-recently
    MadLittleMods committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    958fd3b View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2022

  1. Configuration menu
    Copy the full SHA
    e24db41 View commit details
    Browse the repository at this point in the history
  2. Add changelog

    MadLittleMods committed Oct 4, 2022
    Configuration menu
    Copy the full SHA
    f853e78 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    43fb6b8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    03f23b7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    99d3e79 View commit details
    Browse the repository at this point in the history
  6. Fix test description

    MadLittleMods committed Oct 4, 2022
    Configuration menu
    Copy the full SHA
    f11f5b5 View commit details
    Browse the repository at this point in the history
  7. Fix test descriptions

    MadLittleMods committed Oct 4, 2022
    Configuration menu
    Copy the full SHA
    6878faa View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2022

  1. Scratch debug changes

    MadLittleMods committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    f3b443d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d135d41 View commit details
    Browse the repository at this point in the history
  3. Remove scratch changes

    MadLittleMods committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    4effca9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e3cc054 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    74f9e03 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0b900e1 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3cb2826 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    5f313df View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2022

  1. Merge branch 'develop' into madlittlemods/13622-13700-stop-getting-st…

    …ate-ids-after-missing-prev-event-if-we-tried-to-get-this-event-recently
    MadLittleMods committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    02e6bdd View commit details
    Browse the repository at this point in the history
  2. Not a SynapseError

    Also can pass multiple event_ids,
    see #13816 (comment)
    MadLittleMods committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    7f4fdd2 View commit details
    Browse the repository at this point in the history
  3. Make sure usages of _compute_event_context_with_maybe_missing_prevs h…

    …andle FederationPullAttemptBackoffError
    
    See #13816 (comment)
    MadLittleMods committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    89ffbcb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    354f682 View commit details
    Browse the repository at this point in the history
  5. Do the calculation in Python because it's more clear when we need res…

    …ults for all given events anyway
    
    See #13816 (comment)
    MadLittleMods committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    e0b0447 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e72c4e5 View commit details
    Browse the repository at this point in the history
  7. No need for txn

    MadLittleMods committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    4e08039 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    b060652 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b1a0c1b View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2022

  1. Use more standard string interpolation with logger

    Co-authored-by: Erik Johnston <[email protected]>
    MadLittleMods and erikjohnston authored Oct 15, 2022
    Configuration menu
    Copy the full SHA
    bccd802 View commit details
    Browse the repository at this point in the history