summary refs log tree commit diff
path: root/synapse/storage (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-05-28Update debian changelog v1.14.0Brendan Abolivier1-0/+6
2020-05-281.14.0Brendan Abolivier2-1/+7
2020-05-27Improve changelog wording v1.14.0rc2Brendan Abolivier1-1/+1
2020-05-271.14.0rc2Brendan Abolivier6-5/+18
2020-05-27Fix sample config docs error (#7581)Jason Robinson3-2/+3
'client_auth_method' commented out value was erronously 'client_auth_basic', when code and docstring says it should be 'client_secret_basic'. Signed-off-by: Jason Robinson <jasonr@matrix.org>
2020-05-27Fix up commentsErik Johnston2-3/+3
2020-05-27Fix specifying cache factors via env vars with * in name. (#7580)Erik Johnston4-5/+74
This mostly applise to `*stateGroupCache*` and co. Broke in #6391.
2020-05-27Don't apply cache factor to event cache. (#7578)Erik Johnston3-0/+21
This is already correctly done when we instansiate the cache, but wasn't when it got reloaded (which always happens at least once on startup).
2020-05-27Ensure ReplicationStreamer is always started when replication enabled. (#7579)Erik Johnston2-0/+4
Fixes #7566.
2020-05-26Remove the changes to the debian changelog v1.14.0rc1Brendan Abolivier1-6/+0
Since this is not a full release yet
2020-05-26Not full release yet, this is rc1Brendan Abolivier2-3/+3
2020-05-26Merge event persistence move changelog entriesErik Johnston1-14/+1
2020-05-26More changelog fixBrendan Abolivier1-2/+1
2020-05-26Changelog fixesBrendan Abolivier1-9/+8
2020-05-261.14.0Brendan Abolivier78-76/+106
2020-05-26Replace device_27_unique_idx bg update with a fg one (#7562)Richard van der Hoff7-65/+104
The bg update never managed to complete, because it kept being interrupted by transactions which want to take a lock. Just doing it in the foreground isn't that bad, and is a good deal simpler.
2020-05-26Fix incorrect exception handling in KeyUploadServlet.on_POST (#7563)Richard van der Hoff2-1/+2
Introduced in #7556
2020-05-26Fix recording of federation stream token (#7564)Richard van der Hoff3-24/+116
A couple of changes of significance: * remove the `_last_ack < federation_position` condition, so that updates will still be correctly processed after restart * Correctly wire up send_federation_ack to the right class.
2020-05-23Simplify reap_monthly_active_users (#7558)Richard van der Hoff2-59/+42
we can use `make_in_list_sql_clause` rather than doing our own half-baked equivalent, which has the benefit of working just fine with empty lists. (This has quite a lot of tests, so I think it's pretty safe)
2020-05-22Optimise some references to hs.config (#7546)Richard van der Hoff8-136/+162
These are surprisingly expensive, and we only really need to do them at startup.
2020-05-22Fix missing CORS headers on OPTION responses (#7560)Erik Johnston3-1/+30
Broke in #7534.
2020-05-22Add option to move event persistence off master (#7517)Erik Johnston22-73/+382
2020-05-22Return 200 OK for all OPTIONS requests (#7534)Patrick Cloke5-11/+85
2020-05-22Add ability to wait for replication streams (#7542)Erik Johnston24-112/+304
The idea here is that if an instance persists an event via the replication HTTP API it can return before we receive that event over replication, which can lead to races where code assumes that persisting an event immediately updates various caches (e.g. current state of the room). Most of Synapse doesn't hit such races, so we don't do the waiting automagically, instead we do so where necessary to avoid unnecessary delays. We may decide to change our minds here if it turns out there are a lot of subtle races going on. People probably want to look at this commit by commit.
2020-05-22Convert sending mail to async/await. (#7557)Erik Johnston5-76/+60
Mainly because sometimes the email push code raises exceptions where the stack traces have gotten lost, which is hopefully fixed by this.
2020-05-22Use a non-empty RelayState for user interactive auth with SAML. (#7552)Patrick Cloke2-1/+5
2020-05-22On upgrade room only send canonical alias once. (#7547)Erik Johnston2-55/+61
Instead of doing a complicated dance of deleting and moving aliases one by one, which sends a canonical alias update into the old room for each one, lets do it all in one go. This also changes the function to move *all* local alias events to the new room, however that happens later on anyway.
2020-05-22Fix exception reporting due to HTTP request errors. (#7556)Erik Johnston4-4/+24
These are business as usual errors, rather than stuff we want to log at error.
2020-05-22synapse.metrics: implement detailed memory usage reporting on PyPy (#7536)Ivan Shapovalov2-1/+79
PyPy's gc.get_stats() returns an object containing detailed allocator statistics which could be beneficial to collect as metrics. Signed-off-by: Ivan Shapovalov <intelfx@intelfx.name>
2020-05-22Refresh apt cache when building dh_virtualenv docker image (#7555)Richard van der Hoff2-2/+5
When we tried to build debs for 1.13.0, the build failed because docker used a base docker image which had a stale apt cache. Fixes: #7540
2020-05-22Fix stacktrace mangling in `patch_inline_callbacks` (#7554)Richard van der Hoff2-2/+8
`Failure()` is more cunning than `Failure(e)`.
2020-05-22mypy for synapse.http.site (#7553)Richard van der Hoff3-3/+8
2020-05-22Fix some DETECTED VIOLATIONS in the config file (#7550)Richard van der Hoff8-55/+72
consistency ftw
2020-05-21Retry to sync out of sync device lists (#7453)Brendan Abolivier4-20/+158
When a call to `user_device_resync` fails, we don't currently mark the remote user's device list as out of sync, nor do we retry to sync it. https://github.com/matrix-org/synapse/pull/6776 introduced some code infrastructure to mark device lists as stale/out of sync. This commit uses that code infrastructure to mark device lists as out of sync if processing an incoming device list update makes the device handler realise that the device list is out of sync, but we can't resync right now. It also adds a looping call to retry all failed resync every 30s. This shouldn't cause too much spam in the logs as this commit also removes the "Failed to handle device list update for..." warning logs when catching `NotRetryingDestination`. Fixes #7418
2020-05-21Stub out GET presence requests in the frontend proxy (#7545)Richard van der Hoff2-17/+5
We don't really make any promises about returning accurate presence data when presence is disabled, so we may as well just return a static response, rather than making the master handle a request.
2020-05-21Ensure worker config exists in systemd service (#7528)David Vo2-1/+2
2020-05-21add a commentRichard van der Hoff1-0/+3
2020-05-21Fix bug in persist events when dealing with non member types. (#7548)Erik Johnston2-2/+3
`_is_server_still_joined` will throw if it is given state updates with non-user ID state keys with local user leaves. This is actually rarely a problem since local leaves almost always get persisted by themselves. (I discovered this on a branch that was otherwise broken, so I haven't seen this in the wild)
2020-05-20Update CONTRIBUTING.md (#7541)Richard van der Hoff1-15/+4
2020-05-20Remove Ubuntu Cosmic and Disco which are both EOL. (#7539)Patrick Cloke2-2/+1
2020-05-20Hash passwords earlier in the password reset process (#7538)Patrick Cloke5-11/+33
This now matches the logic of the registration process as modified in 56db0b1365965c02ff539193e26c333b7f70d101 / #7523.
2020-05-20Minor clarifications to the TURN docs (#7533)Richard van der Hoff2-15/+43
2020-05-19Update changelog based on feedback. v1.13.0 github/release-v1.13.0 release-v1.13.0Patrick Cloke1-1/+1
2020-05-19Move warnings in the changelog and re-iterate changes to branches.Patrick Cloke1-18/+32
2020-05-191.13.0Patrick Cloke4-4/+16
2020-05-19update dh-virtualenv (#7526)Richard van der Hoff5-11/+11
2020-05-19synctl warns when no process is stopped and avoids start (#6598)Romain Bouyé2-3/+29
* If an error occurs when stopping a process synctl now logs a warning. * During a restart, synctl will avoid attempting to start Synapse if an error occurs during stopping Synapse.
2020-05-19Improve API doc readability (#7527)Paul Tötterman1-10/+11
2020-05-19Omit displayname or avatar_url if they aren't set instead of returning null ↵Aaron Raimist2-2/+7
(#7497) Per https://github.com/matrix-org/matrix-doc/issues/1436#issuecomment-410089470 they should be omitted instead of returning null or "". They aren't marked as required in the spec. Fixes https://github.com/matrix-org/synapse/issues/7333 Signed-off-by: Aaron Raimist <aaron@raim.ist>
2020-05-181.13.0rc3 v1.13.0rc3Patrick Cloke3-2/+10