0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-12-16 00:23:42 +01:00
dendrite/roomserver/storage/tables
kegsay 6de29c1cd2
bugfix: E2EE device keys could sometimes not be sent to remote servers (#2466)
* Fix flakey sytest 'Local device key changes get to remote servers'

* Debug logs

* Remove internal/test and use /test only

Remove a lot of ancient code too.

* Use FederationRoomserverAPI in more places

* Use more interfaces in federationapi; begin adding regression test

* Linting

* Add regression test

* Unbreak tests

* ALL THE LOGS

* Fix a race condition which could cause events to not be sent to servers

If a new room event which rewrites state arrives, we remove all joined hosts
then re-calculate them. This wasn't done in a transaction so for a brief period
we would have no joined hosts. During this interim, key change events which arrive
would not be sent to destination servers. This would sporadically fail on sytest.

* Unbreak new tests

* Linting
2022-05-17 13:23:35 +01:00
..
event_json_table_test.go Add roomserver tests (1/?) (#2434) 2022-05-09 15:30:32 +02:00
event_state_keys_table_test.go Add roomserver tests (1/?) (#2434) 2022-05-09 15:30:32 +02:00
event_types_table_test.go Add roomserver tests (1/?) (#2434) 2022-05-09 15:30:32 +02:00
events_table_test.go bugfix: E2EE device keys could sometimes not be sent to remote servers (#2466) 2022-05-17 13:23:35 +01:00
interface.go Add roomserver tests (3/4) (#2447) 2022-05-16 19:33:16 +02:00
invite_table_test.go Add roomserver tests (2/?) (#2445) 2022-05-10 14:41:12 +02:00
membership_table_test.go Add roomserver tests (2/?) (#2445) 2022-05-10 14:41:12 +02:00
previous_events_table_test.go bugfix: E2EE device keys could sometimes not be sent to remote servers (#2466) 2022-05-17 13:23:35 +01:00
published_table_test.go bugfix: E2EE device keys could sometimes not be sent to remote servers (#2466) 2022-05-17 13:23:35 +01:00
redactions_table_test.go Add roomserver tests (2/?) (#2445) 2022-05-10 14:41:12 +02:00
room_aliases_table_test.go bugfix: E2EE device keys could sometimes not be sent to remote servers (#2466) 2022-05-17 13:23:35 +01:00
rooms_table_test.go bugfix: E2EE device keys could sometimes not be sent to remote servers (#2466) 2022-05-17 13:23:35 +01:00
state_block_table_test.go Add roomserver tests (3/4) (#2447) 2022-05-16 19:33:16 +02:00
state_snapshot_table_test.go Add roomserver tests (3/4) (#2447) 2022-05-16 19:33:16 +02:00