- Jul 16, 2020
-
-
Luke Faraone authored
I'm pretty sure there's no technical reason these have to be distinct server blocks, so collapse into one and go with the more terse location block. Signed-off-by:
Luke W Faraone <luke@faraone.cc>
-
Richard van der Hoff authored
When we get behind on replication, we tend to stack up background processes behind a linearizer. Bg processes are heavy (particularly with respect to prometheus metrics) and linearizers aren't terribly efficient once the queue gets long either. A better approach is to maintain a queue of requests to be processed, and nominate a single process to work its way through the queue. Fixes: #7444
-
Richard van der Hoff authored
We shouldn't allow others to make_join through us if we've left the room; reject such attempts with a 404. Fixes #7835. Fixes #6958.
-
Erik Johnston authored
-
Erik Johnston authored
This reuses the same scheme as federation sender sharding
-
Richard van der Hoff authored
Fix guest user registration with lots of client readers
-
Richard van der Hoff authored
I found these made pycharm have more of a clue as to what was going on in other places.
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
partly just to show it works, but alwo to remove a bit of code duplication.
-
Richard van der Hoff authored
-
Olivier Wilkinson (reivilibre) authored
It was correct at the time of our friend Jorik writing it (checking git blame), but the world has moved now and it is no longer a generator. Signed-off-by:
Olivier Wilkinson (reivilibre) <olivier@librepush.net>
-
- Jul 15, 2020
-
-
Patrick Cloke authored
-
Richard van der Hoff authored
When considering rooms to clean up in `delete_old_current_state_events`, skip rooms which we are creating, which otherwise look a bit like rooms we have left. Fixes #7834.
-
Erik Johnston authored
-
Patrick Cloke authored
-
Erik Johnston authored
-
Erik Johnston authored
-
Erik Johnston authored
-
Erik Johnston authored
-
Erik Johnston authored
* Fix client reader sharding tests * Newsfile * Fix typing * Update changelog.d/7853.misc Co-authored-by:
Patrick Cloke <clokep@users.noreply.github.com> * Move mocking of http_client to tests Co-authored-by:
Patrick Cloke <clokep@users.noreply.github.com>
-
Patrick Cloke authored
-
Patrick Cloke authored
-
Richard van der Hoff authored
As far as I can tell from the sentry logs, the only time this has actually done anything in the last two years is when we had two master workers running at once, and even then, it made a bit of a mess of it (see https://github.com/matrix-org/synapse/issues/7845#issuecomment-658238739). Generally I feel like this code is doing more harm than good.
-
- Jul 14, 2020
-
-
Patrick Cloke authored
-
Brendan Abolivier authored
-
Dirk Klimpel authored
The Delete Room admin API allows server admins to remove rooms from server and block these rooms. `DELETE /_synapse/admin/v1/rooms/<room_id>` It is a combination and improvement of "[Shutdown room](https://github.com/matrix-org/synapse/blob/develop/docs/admin_api/shutdown_room.md)" and "[Purge room](https://github.com/matrix-org/synapse/blob/develop/docs/admin_api/purge_room.md)" API. Fixes: #6425 It also fixes a bug in [synapse/storage/data_stores/main/room.py](synapse/storage/data_stores/main/room.py) in ` get_room_with_stats`. It should return `None` if the room is unknown. But it returns an `IndexError`. https://github.com/matrix-org/synapse/blob/901b1fa561e3cc661d78aa96d59802cf2078cb0d/synapse/storage/data_stores/main/room.py#L99-L105 Related to: - #5575 - https://github.com/Awesome-Technologies/synapse-admin/issues/17 Signed-off-by:
Dirk Klimpel <dirk@klimpel.org>
-
Patrick Cloke authored
-
Patrick Cloke authored
-
Luke Faraone authored
I'm tempted to remove this section entirely, but it's helpful for admins who are trying to figure out why their Synapse is crashing on start with ACME errors. Signed-off-by:
Luke W Faraone <luke@faraone.cc>
-
Erik Johnston authored
We didn't do this for e.g. registration emails.
-
- Jul 13, 2020
-
-
Patrick Cloke authored
-
Brendan Abolivier authored
Fixes https://github.com/matrix-org/synapse/issues/7821, introduced in https://github.com/matrix-org/synapse/pull/7639 Turns out PyYAML translates `off` into a `False` boolean if it's unquoted (see https://stackoverflow.com/questions/36463531/pyyaml-automatically-converting-certain-keys-to-boolean-values), which seems to be a liberal interpretation of this bit of the YAML spec: https://yaml.org/spec/1.1/current.html#id864510 An alternative fix would be to implement the solution mentioned in the SO post linked above, but I'm aware it might break existing setups (which might use these values in the configuration file) so it's probably better just to add an extra check for this one. We should be aware that this is a thing for the next times we do that though. I didn't find any other occurrence of this bug elsewhere in the codebase.
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
- Jul 10, 2020
-
-
Patrick Cloke authored
-
Patrick Cloke authored
-
Sorunome authored
-