Commit graph

1755 commits

Author SHA1 Message Date
Kegan Dougal 80e015a7e8 Remember to send outliers for state returned from /gme 2022-01-25 18:41:21 +00:00
Neil Alexander 296e205ca0
Merge branch 'master' into neilalexander/federationinput 2022-01-25 17:08:35 +00:00
Neil Alexander 98de7c2f77
Update consumers for the roomserver output stream 2022-01-25 17:07:37 +00:00
Neil Alexander 0e8bb6b762
Update sytest-whitelist 2022-01-25 17:01:46 +00:00
Neil Alexander 8a1bc70524
Exclude our own server name in GetJoinedHostsForRooms (#2110)
* Exclude our own servername

* Make excluding self behaviour optional
2022-01-25 17:00:39 +00:00
Neil Alexander 6facd320dd
Exclude self from g_m_e 2022-01-25 16:37:52 +00:00
Neil Alexander c0af970cc6
Make excluding self behaviour optional 2022-01-25 16:37:13 +00:00
Neil Alexander ea103886a9
Try backing off servers 2022-01-25 16:28:47 +00:00
Neil Alexander 7f77bf832a
Exclude our own servername 2022-01-25 16:16:07 +00:00
Kegan Dougal 9889429ae8 Set stateIDs length correctly or else the roomserver thinks there are missing events when there aren't 2022-01-25 16:14:52 +00:00
Kegan Dougal f5b87bde01 Don't resend create events 2022-01-25 15:51:08 +00:00
Neil Alexander 7677bcaa06
Merge branch 'master' into neilalexander/federationinput 2022-01-25 14:22:38 +00:00
Neil Alexander 1a3b61651a
Update gmsl 2022-01-25 14:22:19 +00:00
Neil Alexander 49a618dfe2
Increase maximum message size to 16MB (#2109) 2022-01-25 14:20:12 +00:00
Neil Alexander f008173a5a
Some context refactoring 2022-01-25 14:13:52 +00:00
Neil Alexander 8c9b2e402a
Don't limit servers, randomise order using map 2022-01-25 11:37:56 +00:00
Neil Alexander 90472490ad
Merge branch 'master' into neilalexander/federationinput 2022-01-25 11:26:34 +00:00
Neil Alexander 2332503f68
Tidy up a couple things 2022-01-25 11:05:30 +00:00
Neil Alexander 0bcf2970d1
Some review comment fixes 2022-01-25 10:33:50 +00:00
kegsay a5c5de860b
Add Complement to GHA (#2108)
* Add Complement to GHA

* Only run on push on master
2022-01-24 18:06:08 +00:00
Neil Alexander 8a2c565385
Limit the number of servers we attempt to reduce backpressure 2022-01-24 13:57:03 +00:00
Neil Alexander d0ee9f9841
Reduce chance of duplicates being sent by NATS 2022-01-24 13:35:55 +00:00
Neil Alexander 9ddb8749c1
Use work queue policy, deliver all on restart 2022-01-24 11:59:28 +00:00
Neil Alexander 03a989d5c9
Set timeouts on roomserver input tasks (need to decide what timeout makes sense) 2022-01-24 11:15:20 +00:00
Neil Alexander c68037b3e8
Apply backpressure to consumers/synchronous requests to hopefully stop things being overwhelmed 2022-01-24 10:37:19 +00:00
S7evinK e7f9f2e6f6
Update bridge FAQ & README (#2106)
* Update bridge FAQ

Signed-off-by: Till Faelligen <tfaelligen@gmail.com>

* Update README
2022-01-24 10:29:45 +00:00
Neil Alexander a4601bb698
Update to matrix-org/gomatrixserverlib@f3e2ef8 (matrix-org/matrix-doc#3667) 2022-01-24 10:28:23 +00:00
Neil Alexander 5ed90caaff
Allow async inputs again 2022-01-21 17:20:02 +00:00
Neil Alexander 141200d22e
Room version tweaks 2022-01-21 17:18:16 +00:00
Neil Alexander a290dafa60
Merge branch 'master' into neilalexander/federationinput 2022-01-21 16:51:10 +00:00
Neil Alexander 42511199cb
We only have missing prev if we don't supply state 2022-01-21 16:41:38 +00:00
kegsay de38be469a
Expand issue template (#2103) 2022-01-21 16:24:31 +00:00
Neil Alexander cc2f8a799b
Tweaks 2022-01-21 15:32:59 +00:00
Neil Alexander ae3c4f3c56
Only search for missing prev events or state for new events 2022-01-21 15:18:51 +00:00
Neil Alexander 7a93bb32e7
Merge branch 'master' into neilalexander/federationinput 2022-01-21 15:02:30 +00:00
Neil Alexander 96bf4aa838
Add Forward extremities remain so even after the next events are populated as outliers to sytest-whitelist 2022-01-21 14:59:47 +00:00
kegsay cd1391fc62
Document log levels (#2101) 2022-01-21 14:46:47 +00:00
FORCHA 3c92b55bec
Update monolith-sample.conf (#2087)
* Update monolith-sample.conf

-Replaced undefined monolith value  with server_name  (my.hostname.com) value in reference tho ths issue https://github.com/matrix-org/dendrite/issues/2078

* Update monolith-sample.conf

Changed IP to location of monolith server

Co-authored-by: kegsay <kegan@matrix.org>
2022-01-21 14:37:59 +00:00
kegsay 0bf5104bbb
Fix #2027 by gracefully handling stub rooms (#2100)
The server ACL code on startup will grab all known rooms from
the rooms_table and then call `GetStateEvent` with each found
room ID to find the server ACL event. This can fail for stub
rooms, which will be present in the rooms table. Previously
this would result in an error being returned and the server
failing to start (!). Now we just return no event for stub
rooms.
2022-01-21 14:23:37 +00:00
Neil Alexander 9191b23ae0
Revert "Use given event kind when sending auth/state events"
This reverts commit 089d64d271.
2022-01-21 14:15:23 +00:00
Neil Alexander 089d64d271
Use given event kind when sending auth/state events 2022-01-21 13:44:39 +00:00
Neil Alexander 75cfec95e2
Send create room events as new 2022-01-21 13:44:27 +00:00
Neil Alexander 4253eccfb3
Handle create events better 2022-01-21 11:26:26 +00:00
Neil Alexander 61437d6e44
Try that again 2022-01-21 11:14:19 +00:00
Neil Alexander f226066783
Don't check missing state for create events 2022-01-21 10:57:38 +00:00
Neil Alexander d93ddb08d1
Care about state when checking missing prev events 2022-01-21 10:26:24 +00:00
kegsay 2c581377a5
Remodel how device list change IDs are created (#2098)
* Remodel how device list change IDs are created

Previously we made them using the offset Kafka supplied.
We don't run Kafka anymore, so now we make the SQL table assign
the change ID via an AUTOINCREMENTing ID. Redesign the
`keyserver_key_changes` table to have `UNIQUE(user_id)` so we
don't accumulate key changes forevermore, we now have at most 1
row per user which contains the highest change ID.

This needs a SQL migration.

* Ensure we bump the change ID on sqlite

* Actually read the DeviceChangeID not the Offset in synapi

* Add SQL migrations

* Prepare after migration; fixup dendrite-upgrade-test logging

* Use higher version numbers; fix sqlite query to increment better

* Default 0 on postgres

* fixup postgres migration on fresh dendrite instances
2022-01-21 09:56:06 +00:00
Neil Alexander 078345a29d
Tweak logic around checking missing state 2022-01-21 09:55:13 +00:00
Neil Alexander 848f5487f0
Track missing prev events separately to avoid calculating state when not possible 2022-01-20 17:42:45 +00:00
Neil Alexander b143d7bc88
Try skipping unmarshalling errors for RespMissingEvents 2022-01-20 16:52:17 +00:00