element-hq / dendrite

Dendrite is a second-generation Matrix homeserver written in Go!
https://element-hq.github.io/dendrite/
GNU Affero General Public License v3.0
23 stars 4 forks source link

Ghost Rooms when changing DB Types #2274

Open matrixbot opened 2 weeks ago

matrixbot commented 2 weeks ago

This issue was originally created by @narashini at https://github.com/matrix-org/dendrite/issues/2274.

Background information

Description

Steps to reproduce

(this is how i came across the bug)

Describe how what happens differs from what you expected. There should not be random ghost rooms when you change DB Types from SQLite to PostgreSQL.

matrixbot commented 2 weeks ago

This comment was originally posted by @narashini at https://github.com/matrix-org/dendrite/issues/2274#issuecomment-1065918012.

(Edited it, i accidentally left steps to reproduce commented out.)

matrixbot commented 2 weeks ago

This comment was originally posted by @kegsay at https://github.com/matrix-org/dendrite/issues/2274#issuecomment-1339405224.

The problem here is that other servers don't know you forgot all your rooms (when you swapped DBs) which is why it got repopulated.