Skip to content

Conversation

anoadragon453
Copy link
Member

@anoadragon453 anoadragon453 commented Oct 14, 2025

The impact of the bug was that READY=1 would never be signaled to systemd. This meant that any reload command sent via systemd would lock the process into a permanent reloading state, meaning it could not be reloaded again until the service was restarted.

This could cause operational issues when the processes needed to be reloaded multiple times.

Broke in #18670.

Pull Request Checklist

  • Pull request is based on the develop branch
  • Pull request includes a changelog file. The entry should:
    • Be a short description of your change which makes sense to users. "Fixed a bug that prevented receiving messages from other servers." instead of "Moved X method from EventStore to EventWorkerStore.".
    • Use markdown where necessary, mostly for code blocks.
    • End with either a period (.) or an exclamation mark (!).
    • Start with a capital letter.
    • Feel free to credit yourself, by adding a sentence "Contributed by @github_username." or "Contributed by [Your Name]." to the end of the entry.
  • Code style is correct (run the linters)

The impact of the bug was that `READY=1` would never be signaled to
systemd. This meant that any `reload` command sent via systemd would
lock the process into a permanent `reloading` state, meaning it could
not be `reload`ed again until the service was restarted.

This could cause operational issues when the processes needed to be
reloaded multiple times.
@anoadragon453 anoadragon453 marked this pull request as ready for review October 14, 2025 13:43
@anoadragon453 anoadragon453 requested a review from a team as a code owner October 14, 2025 13:43
@anoadragon453 anoadragon453 enabled auto-merge (squash) October 14, 2025 13:46
@anoadragon453
Copy link
Member Author

CI failures are unrelated to this PR.

@anoadragon453 anoadragon453 merged commit a4f9274 into develop Oct 14, 2025
42 of 44 checks passed
@anoadragon453 anoadragon453 deleted the anoa/fix_sighup branch October 14, 2025 14:10
@@ -0,0 +1 @@
Fix a bug introduced in 1.136.0 that would prevent Synapse from being able to be `reload`-ed more than once when running under systemd. No newline at end of file
Copy link
Contributor

@MadLittleMods MadLittleMods Oct 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way we can add a test for this? To prevent future breakage and ensure this behavior works into the future.

Perhaps our first out-of-repo Complement test that lives in the Synapse project. For example, we already do SIGHUP stuff in the SBG Complement tests.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see no reason not to do that, though it would be a good amount of work to set up the CI and write such a test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants