summary refs log tree commit diff
path: root/scripts-dev/tail-synapse.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-10-07Reduce serialization errors in MultiWriterIdGen (#8456)Erik Johnston7-8/+112
We call `_update_stream_positions_table_txn` a lot, which is an UPSERT that can conflict in `REPEATABLE READ` isolation level. Instead of doing a transaction consisting of a single query we may as well run it outside of a transaction.
2020-10-07Use vector clocks for room stream tokens. (#8439)Erik Johnston4-42/+380
Currently when using multiple event persisters we (in the worst case) don't tell clients about events until all event persisters have persisted new events after the original event. This is a suboptimal, especially if one of the event persisters goes down. To handle this, we encode the position of each event persister in the room tokens so that we can send events to clients immediately. To reduce the size of the token we do two things: 1. We create a unique immutable persistent mapping between instance names and a generated small integer ID, which we can encode in the tokens instead of the instance name; and 2. We encode the "persisted upto position" of the room token and then only explicitly include instances that have positions strictly greater than that. The new tokens look something like: `m3478~1.3488~2.3489`, where the first number is the min position, and the subsequent `-` separated pairs are the instance ID to positions map. (We use `.` and `~` as separators as they're URL safe and not already used by `StreamToken`).
2020-10-07Add typing information to the device handler. (#8407)Patrick Cloke4-38/+59
2020-10-07Fix returning incorrect prev_batch token in incremental sync (#8486)Erik Johnston2-1/+7
2020-10-07unblacklist some tests (#8474)Richard van der Hoff3-34/+1
It seems most of these blacklisted tests do actually pass most of the time. I'm of the opinion that having them blacklisted here means there is very little incentive for us to deflake any flaky tests, and meanwhile any value in those tests is completely lost.
2020-10-07Add support for MSC2697: Dehydrated devices (#8380)Hubert Chathi9-21/+454
This allows a user to store an offline device on the server and then restore it at a subsequent login.
2020-10-07Combine `SpamCheckerApi` with the more generic `ModuleApi`. (#8464)Richard van der Hoff10-58/+51
Lots of different module apis is not easy to maintain. Rather than adding yet another ModuleApi(hs, hs.get_auth_handler()) incantation, first add an hs.get_module_api() method and use it where possible.
2020-10-07Remove docs/sphinx and related references (#8480)Andrew Morgan62-839/+1
https://github.com/matrix-org/synapse/tree/develop/docs/sphinx doesn't seem to really be utilised or changed recently since the initial commit. I like the idea of exportable documentation of the codebase, but at the moment after running through the build instructions the generated website wasn't very useful...
2020-10-07update wordingRichard van der Hoff1-2/+3
2020-10-06Add support for MSC2732: olm fallback keys (#8312)Hubert Chathi8-1/+215
2020-10-06Additional tests for third-party event rules (#8468)Richard van der Hoff3-18/+79
* Optimise and test state fetching for 3p event rules Getting all the events at once is much more efficient than getting them individually * Test that 3p event rules can modify events
2020-10-06Don't bother responding to client requests that have already disconnected ↵Andrew Morgan3-0/+12
(#8465) This PR ports the quick fix from https://github.com/matrix-org/synapse/pull/2796 to further methods which handle media, URL preview and `/key/v2/server` requests. This prevents a harmless `ERROR` that comes up in the logs when we were unable to respond to a client request when the client had already disconnected. In this case we simply bail out if the client has already done so. This is the 'simple fix' as suggested by https://github.com/matrix-org/synapse/issues/5304#issuecomment-574740003. Fixes https://github.com/matrix-org/synapse/issues/6700 Fixes https://github.com/matrix-org/synapse/issues/5304
2020-10-05Update default room version to 6 (#8461)Richard van der Hoff4-3/+13