synapse-old/synapse
Richard van der Hoff a139420a3c
Fix races in room stats (and other) updates. (#6187)
Hopefully this will fix the occasional failures we were seeing in the room directory.

The problem was that events are not necessarily persisted (and `current_state_delta_stream` updated) in the same order as their stream_id. So for instance current_state_delta 9 might be persisted *before* current_state_delta 8. Then, when the room stats saw stream_id 9, it assumed it had done everything up to 9, and never came back to do stream_id 8.

We can solve this easily by only processing up to the stream_id where we know all events have been persisted.
2019-10-10 11:29:01 +01:00
..
_scripts Run Black. (#5482) 2019-06-20 19:32:02 +10:00
api Fix up some typechecking (#6150) 2019-10-02 05:29:01 -07:00
app Fix up some typechecking (#6150) 2019-10-02 05:29:01 -07:00
appservice Remove double return statements (#5962) 2019-09-03 11:42:45 +01:00
config Refactor HomeserverConfig so it can be typechecked (#6137) 2019-10-10 09:39:35 +01:00
crypto Fix well-known lookups with the federation certificate whitelist (#5997) 2019-09-14 04:58:38 +10:00
events Merge pull request #5805 from matrix-org/erikj/validate_state 2019-08-01 13:45:48 +01:00
federation Fix /federation/v1/state for recent room versions (#6170) 2019-10-08 09:35:37 +01:00
groups Replace returnValue with return (#5736) 2019-07-23 23:00:55 +10:00
handlers Fix races in room stats (and other) updates. (#6187) 2019-10-10 11:29:01 +01:00
http Merge branch 'master' into develop 2019-10-03 13:48:45 +01:00
logging Fix up some typechecking (#6150) 2019-10-02 05:29:01 -07:00
metrics Fix up some typechecking (#6150) 2019-10-02 05:29:01 -07:00
module_api Remove unnecessary parentheses around return statements (#5931) 2019-08-30 16:28:26 +01:00
push Generalize email sending logging (#6075) 2019-09-23 14:38:19 +01:00
replication Trace how long it takes for the send trasaction to complete, including retrys (#5986) 2019-09-05 17:44:55 +01:00
res/templates Allow HS to send emails when adding an email to the HS (#6042) 2019-09-20 15:21:30 +01:00
rest add M_TOO_LARGE error code for uploading a too large file (#6151) 2019-10-08 13:55:16 +01:00
server_notices Remove unnecessary parentheses around return statements (#5931) 2019-08-30 16:28:26 +01:00
state add some metrics on the federation sender (#6160) 2019-10-03 17:47:20 +01:00
static Fix SSO fallback login 2019-09-12 11:42:47 +01:00
storage Fix races in room stats (and other) updates. (#6187) 2019-10-10 11:29:01 +01:00
streams Remove unnecessary parentheses around return statements (#5931) 2019-08-30 16:28:26 +01:00
util add some metrics on the federation sender (#6160) 2019-10-03 17:47:20 +01:00
__init__.py 1.4.0 2019-10-03 13:22:44 +01:00
event_auth.py Cleanup event auth type initialisation (#5975) 2019-09-04 16:16:56 +01:00
notifier.py Remove unnecessary parentheses around return statements (#5931) 2019-08-30 16:28:26 +01:00
python_dependencies.py Fix up some typechecking (#6150) 2019-10-02 05:29:01 -07:00
secrets.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
server.py Allow use of different ratelimits for admin redactions. 2019-09-11 10:46:38 +01:00
server.pyi Run Black. (#5482) 2019-06-20 19:32:02 +10:00
types.py Fix up some typechecking (#6150) 2019-10-02 05:29:01 -07:00
visibility.py Replace returnValue with return (#5736) 2019-07-23 23:00:55 +10:00