Skip to content

Stop reading from event_edges.is_state to prepare for dropping it. - #20069

Merged
reivilibre merged 7 commits into
developfrom
rei/event_edges_1
Oct 13, 2026
Merged

reivilibre merged 7 commits into
developfrom
rei/event_edges_1

Conversation

@reivilibre

@reivilibre reivilibre commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

Gets one step further in the job started by matrix-org/synapse#12893

Part of: #20026

This pull request is commit-by-commit review friendly.

  1. Bump SCHEMA_VERSION to 95

  2. Force event_edges_drop_invalid_rows update into foreground

  3. Stop reading from event_edges.is_state

Manual testing strategy

Unfortunately it's quite difficult to actually trigger this.

You need to:

git checkout v1.62.0 -- synapse/storage/schema/state/full_schemas/54                
git checkout v1.62.0 -- synapse/storage/schema/main/full_schemas/54                                                                                                
git checkout v1.62.0 -- synapse/storage/schema/common/full_schemas/54
rm -r synapse/storage/schema/*/full_schemas/72
rm synapse/storage/schema/main/delta/58/10_pushrules_enabled_delete_obsolete.sql
rm synapse/storage/schema/main/delta/79/04_mitigate_stream_ordering_update_race.py
rm synapse/storage/schema/main/delta/56/redaction_censor3_fix_update.sql.postgres
rm synapse/storage/schema/main/delta/60/01recreate_stream_ordering.sql.postgres
SYNAPSE_TEST_LOG_LEVEL=DEBUG SYNAPSE_POSTGRES=1 poetry run trial tests.handlers.test_sliding_sync.ComputeInterestedRoomsTestCase_new.test_no_joins_after_to_token

As light validation, I purposefully inserted a SQL error into the query to check that it is caught by the above testing strategy.

@reivilibre reivilibre changed the title Stop reading from event_edges.is_state to prepare for dropping it. The column has been obsolete since Synapse 1.62.0. Stop reading from event_edges.is_state to prepare for dropping it. Aug 6, 2026
@reivilibre
reivilibre marked this pull request as ready for review August 6, 2026 11:50
@reivilibre
reivilibre requested a review from a team as a code owner August 6, 2026 11:50
@erikjohnston erikjohnston self-assigned this Aug 7, 2026
Comment thread changelog.d/20014.misc Outdated
@github-actions

Copy link
Copy Markdown
Contributor

Schema Diff

Please 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
reivilibre merged commit 636c6a3 into develop Oct 13, 2026
49 checks passed
@reivilibre
reivilibre deleted the rei/event_edges_1 branch October 13, 2026 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants