This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
populate_stats_process_rooms failing with an unknown room #14800
Labels
A-Background-Updates
Filling in database columns, making the database eventually up-to-date
O-Occasional
Affects or can be seen by some users regularly or most users rarely
S-Major
Major functionality / product severely impaired, no satisfactory workaround.
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
As part of #14643 we are re-populating room and user stats, this is currently failing with an error:
Stack trace
This exception is raised at:
synapse/synapse/storage/databases/main/events_worker.py
Lines 1302 to 1304 in db1cfe9
It happens when attempting to fetch a non-membership event from a room whose room version is unknown (
room_version IS NULL
in therooms
table).Some history:
room_version
column (and populating it) was added in Addrooms.room_version
column #6729 ~3 years ago, but this skips any room that doesn't have am.room.create
event in thecurrent_state_events
table.room_version
column when reading events.state_events
(as opposed tocurrent_state_events
).room_version
for rooms that don't have a create event: https://github.com/matrix-org/synapse/pull/7070/files#r393343338, but notes it should be OK since Read the room version from database when fetching events #6874 handles this case (of out-of-band memberships).The text was updated successfully, but these errors were encountered: