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

Fix missing dependencies in background jobs #15724

Closed
wants to merge 6 commits into from
Closed

Conversation

H-Shay
Copy link
Contributor

@H-Shay H-Shay commented Jun 5, 2023

This PR moves two foreground schema migrations to background jobs in order to express dependencies amongst them. Prior to this, if Synapse was upgraded from a sufficiently old version the foreground migrations would apply before a background job also touching the same column was finished, resulting in the background job failing. Fixes #15677. Best reviewed commit by commit.

…end on `replace_stream_ordering_column` job
…his job depend on the `add_stream_ordering` bg job
@H-Shay H-Shay requested a review from a team as a code owner June 5, 2023 20:55
@H-Shay H-Shay removed the request for review from a team June 5, 2023 20:59
@H-Shay H-Shay marked this pull request as draft June 5, 2023 20:59
Copy link
Contributor

@Fizzadar Fizzadar left a comment

Choose a reason for hiding this comment

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

Thank you for fixing this up @H-Shay, looks v.sensible to me!

@H-Shay
Copy link
Contributor Author

H-Shay commented Jul 18, 2023

Closed in favor of #15887 as this did not work.

@H-Shay H-Shay closed this Jul 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Background updates failed after upgrading from Synapse 1.25.0
2 participants