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

Handle federation inbound instances being killed more gracefully #11262

Merged
merged 3 commits into from
Nov 8, 2021

Commits on Nov 5, 2021

  1. Make lock better handle process being killed

    If the process gets killed and restarted (so that it didn't have a
    chance to drop its locks gracefully) then there may still be locks in
    the DB that are for the same instance that haven't yet timed out but are
    safe to delete.
    
    We handle this case by a) checking if the current instance already has
    taken out the lock, and b) if not then ignoring locks that are for the
    same instance.
    erikjohnston committed Nov 5, 2021
    Configuration menu
    Copy the full SHA
    9278725 View commit details
    Browse the repository at this point in the history
  2. Periodically check for old staged events

    This is to protect against other instances dying and their locks timing
    out.
    erikjohnston committed Nov 5, 2021
    Configuration menu
    Copy the full SHA
    26f55fb View commit details
    Browse the repository at this point in the history
  3. Newsfile

    erikjohnston committed Nov 5, 2021
    Configuration menu
    Copy the full SHA
    6a3f45e View commit details
    Browse the repository at this point in the history