- Jan 14, 2021
-
-
Erik Johnston authored
We passed in a graph to `sorted_topologically` which didn't have an entry for each node (as we dropped nodes with no edges).
-
- Jan 11, 2021
-
-
Erik Johnston authored
-
- Jan 06, 2021
-
-
Patrick Cloke authored
-
- Oct 30, 2020
-
-
Richard van der Hoff authored
We don't always need the full power of a DeferredCache.
-
- Oct 21, 2020
-
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
- Oct 19, 2020
-
-
Richard van der Hoff authored
We need to make sure we are readu for the `set_cache_factor` callback.
-
Richard van der Hoff authored
* Add `DeferredCache.get_immediate` method A bunch of things that are currently calling `DeferredCache.get` are only really interested in the result if it's completed. We can optimise and simplify this case. * Remove unused 'default' parameter to DeferredCache.get() * another get_immediate instance
-
- Oct 16, 2020
-
-
Richard van der Hoff authored
rather than have everything that instantiates an LruCache manage metrics separately, have LruCache do it itself.
-
- Oct 14, 2020
-
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
- Sep 04, 2020
-
-
Patrick Cloke authored
-
- Aug 28, 2020
-
-
Patrick Cloke authored
-
- Aug 27, 2020
-
-
Andrew Morgan authored
-
- Aug 19, 2020
-
-
Patrick Cloke authored
-
- Aug 18, 2020
-
-
Andrew Morgan authored
Closes: https://github.com/matrix-org/synapse/issues/6766 Equivalent Sydent PR: https://github.com/matrix-org/sydent/pull/309 I believe it's now time to remove the extra allowed `:` from `client_secret` parameters.
-
- Aug 06, 2020
-
-
Patrick Cloke authored
-
- Jul 09, 2020
-
-
Patrick Cloke authored
-
- Jul 03, 2020
-
-
Dirk Klimpel authored
fixes #7016
-
- Jun 16, 2020
-
-
Dagfinn Ilmari Mannsåker authored
-
- May 27, 2020
-
-
Erik Johnston authored
-
- May 11, 2020
-
-
Amber Brown authored
-
- Apr 22, 2020
-
-
Richard van der Hoff authored
First some background: StreamChangeCache is used to keep track of what "entities" have changed since a given stream ID. So for example, we might use it to keep track of when the last to-device message for a given user was received [1], and hence whether we need to pull any to-device messages from the database on a sync [2]. Now, it turns out that StreamChangeCache didn't support more than one thing being changed at a given stream_id (this was part of the problem with #7206). However, it's entirely valid to send to-device messages to more than one user at a time. As it turns out, this did in fact work, because *some* methods of StreamChangeCache coped ok with having multiple things changing on the same stream ID, and it seems we never actually use the methods which don't work on the stream change caches where we allow multiple changes at the same stream ID. But that feels horribly fragile, hence: let's update StreamChangeCache to properly support this, and add some typing and some more tests while we're at it. [1]: https://github.com/matrix-org/synapse/blob/release-v1.12.3/synapse/storage/data_stores/main/deviceinbox.py#L301 [2]: https://github.com/matrix-org/synapse/blob/release-v1.12.3/synapse/storage/data_stores/main/deviceinbox.py#L47-L51
-
- Mar 24, 2020
-
-
Richard van der Hoff authored
* Pull Sentinel out of LoggingContext ... and drop a few unnecessary references to it * Factor out LoggingContext.current_context move `current_context` and `set_context` out to top-level functions. Mostly this means that I can more easily trace what's actually referring to LoggingContext, but I think it's generally neater. * move copy-to-parent into `stop` this really just makes `start` and `stop` more symetric. It also means that it behaves correctly if you manually `set_log_context` rather than using the context manager. * Replace `LoggingContext.alive` with `finished` Turn `alive` into `finished` and make it a bit better defined.
-
- Feb 21, 2020
-
-
Patrick Cloke authored
Ensure good comprehension hygiene using flake8-comprehensions.
-
- Jan 24, 2020
-
-
Andrew Morgan authored
-
- Jan 16, 2020
-
-
Richard van der Hoff authored
... since the whole response is huge. We even need to break up the assertions, since kibana otherwise truncates them.
-
- Dec 10, 2019
-
-
Erik Johnston authored
-
- Dec 09, 2019
-
-
Erik Johnston authored
-
- Oct 30, 2019
-
-
Erik Johnston authored
This makes it easier to use in an async/await world. Also fixes a bug where cache descriptors would occaisonally return a raw value rather than a deferred.
-
- Oct 28, 2019
-
-
Erik Johnston authored
-
- Sep 17, 2019
-
-
Richard van der Hoff authored
Track the time that a server started failing at, for general analysis purposes.
-
- Aug 13, 2019
-
-
Erik Johnston authored
This gives a bit of a grace period where we can attempt to refetch a remote `well-known`, while still using the cached result if that fails. Hopefully this will make the well-known resolution a bit more torelant of failures, rather than it immediately treating failures as "no result" and caching that for an hour.
-
- Jul 25, 2019
-
-
Richard van der Hoff authored
There was some inconsistent behaviour in the caching layer around how exceptions were handled - particularly synchronously-thrown ones. This seems to be most easily handled by pushing the creation of ObservableDeferreds down from CacheDescriptor to the Cache.
-
- Jul 23, 2019
-
-
Amber Brown authored
-
- Jul 05, 2019
-
-
Richard van der Hoff authored
- Put the default window_size back to 1000ms (broken by #5181) - Make the `rc_federation` config actually do something - fix an off-by-one error in the 'concurrent' limit - Avoid creating an unused `_PerHostRatelimiter` object for every single incoming request
-
- Jul 03, 2019
-
-
Amber Brown authored
-
- Jul 02, 2019
-
-
Amber Brown authored
-