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

Handle half-created indices in receipts index background update #14650

Merged

Commits on Dec 9, 2022

  1. Factor out index creation method from register_background_index_update

    Signed-off-by: Sean Quah <[email protected]>
    Sean Quah committed Dec 9, 2022
    Configuration menu
    Copy the full SHA
    17c43d1 View commit details
    Browse the repository at this point in the history
  2. Handle half-created indices in receipts index background update

    When Synapse is terminated while running the background update to create
    the `receipts_graph` or `receipts_linearized` indexes, the indexes may
    be successfully created (or marked as invalid on postgres) while the
    background update remains unfinished. When Synapse next starts up, the
    background update will fail because the index already exists, or exists
    but is invalid on postgres.
    
    Use the existing code to create indices in background updates, since it
    handles these edge cases.
    
    Signed-off-by: Sean Quah <[email protected]>
    Sean Quah committed Dec 9, 2022
    Configuration menu
    Copy the full SHA
    5e14dcb View commit details
    Browse the repository at this point in the history
  3. Add newsfile

    Sean Quah committed Dec 9, 2022
    Configuration menu
    Copy the full SHA
    55723ab View commit details
    Browse the repository at this point in the history
  4. fixup: remove dead code (thanks dmr!)

    Sean Quah committed Dec 9, 2022
    Configuration menu
    Copy the full SHA
    5cc4729 View commit details
    Browse the repository at this point in the history