| Commit message (Collapse) | Author | Files | Lines |
|
I noticed in https://github.com/matrix-org/synapse/issues/8575 that the `end_error` variable in `synapse_port_db` is set to an `Exception`, even though later we expect it to be a `str`.
This PR simply casts an exception raised to a string. I'm doing this instead of having `end_error` be of type exception as we explicitly set `end_error` to a str here:
https://github.com/matrix-org/synapse/blob/d25eb8f3709965d0face01a041d5292490bf0139/scripts/synapse_port_db#L542-L547
This whole file could probably use some heavy refactoring, but until then at least this fix will prevent exception contents from being hidden from us and users.
|
|
* Move schema file
* Add a .
* Add matching changelog entry
* Fix sqlite
|
|
We need to make sure we are readu for the `set_cache_factor` callback.
|
|
Signed-off-by: Vasilis Gerakaris <vasilis.gerakaris@navarino.gr>
|
|
|
|
|
|
* 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
|
|
content (#8545)
|
|
By using the "poll" reactor since macOS doesn't support epoll.
|
|
This should reduce the number of `There was no active span` errors we
see.
Fixes #8510.
|
|
Most of these uses don't need a full-blown DeferredCache; LruCache is lighter and more appropriate.
|
|
(#8577)
Fix the Connection protocol according to typeshed's assertions about sqlite3.Connection
|
|
This seems to have been broken since #6513.
|
|
|