Repository navigation
Stop reading from the legacy state_events and rejections tables. - #20083
Open
reivilibre wants to merge 6 commits into
Open
reivilibre wants to merge 6 commits into
reivilibre wants to merge 6 commits into
Conversation
reivilibre
force-pushed
the
rei/debt_ses_rejs
branch
2 times, most recently
from
August 10, 2026 11:45
15b859d to
6dcf888
Compare
reivilibre
force-pushed
the
rei/debt_ses_rejs
branch
from
August 10, 2026 11:49
6dcf888 to
43d3ba0
Compare
reivilibre
marked this pull request as ready for review
August 10, 2026 11:50
reivilibre
force-pushed
the
rei/debt_ses_rejs
branch
from
August 10, 2026 15:54
43d3ba0 to
7e1a3fe
Compare
reivilibre
marked this pull request as draft
August 11, 2026 09:40
reivilibre
force-pushed
the
rei/debt_ses_rejs
branch
from
August 13, 2026 17:41
7e1a3fe to
3b87c48
Compare
Contributor
Schema DiffPlease check that this looks as expected! common (sqlite)Unchanged common (postgres)Unchanged main (sqlite)Unchanged main (postgres)Unchanged state (sqlite)Unchanged state (postgres)Unchanged |
reivilibre
marked this pull request as ready for review
August 14, 2026 12:17
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of: #11496
Follows: matrix-org/synapse#13215
These tables have been in the process of being killed off for a few years. Let's take the next step in getting rid of them, to be bundled in the same schema version bump as #20069.
This pull request is commit-by-commit review friendly.
Bump SCHEMA_VERSION to 95 with notes
Force
rejected_events_metadatabackground update to run in foregroundForce
events_populate_state_key_rejectionsbackground update to run in foregroundStop reading from the
rejectionsandstate_eventstablesRemove redundant RejectionsStore
Manual testing strategy
Unfortunately it's quite difficult to actually trigger this.
You need to:
v1.62.0was releasedfull_schema, as it already has the background update appliedAs light validation, I purposefully inserted a SQL error into the query to check that it is caught by the above testing strategy. I did this after applying this patch to ensure the background job was scheduled: