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

Very slow startup after upgrade to 1.26.0 #9268

@richvdh

Description

@richvdh

@madduck reported that his synapse blocked during startup after upgrade to 1.26.0.

Debug logs are at https://paste.debian.net/plain/1183329. Additional logs (having restarted with synapse.storage.SQL set to DEBUG) are at https://paste.debian.net/plain/1183332.

Eventually it completed startup of its own accord.

Implication seems to be that the new to-device init code (introduced in #9044) is blocking, but oddly:

  • the same query, run on postgres directly, completed in half a second (though this might be unrepresentative due to the results being cached)
  • SELECT COUNT(*) FROM device_inbox WHERE stream_id >172426 - 1000; returns 222679, which is quite a lot, but not block-for-10-minutes level.

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-MinorBlocks non-critical functionality, workarounds exist.T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.X-RegressionSomething broke which worked on a previous release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions