forked-synapse/synapse/handlers
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
..
ui_auth Threepid validity checks on msisdns should not be dependent on 'threepid_behaviour_email'. (#6104) 2019-09-25 12:29:35 +01:00
__init__.py Fix registration on workers (#4682) 2019-02-20 18:47:31 +11:00
_base.py Fix comments 2019-09-11 13:54:50 +01:00
account_data.py Remove unnecessary parentheses around return statements (#5931) 2019-08-30 16:28:26 +01:00
account_validity.py Allow Synapse to send registration emails + choose Synapse or an external server to handle 3pid validation (#5987) 2019-09-06 11:35:28 +01:00
acme_issuing_service.py Allow configuration of the path used for ACME account keys. 2019-06-24 13:51:22 +01:00
acme.py Replace returnValue with return (#5736) 2019-07-23 23:00:55 +10:00
admin.py Add GET method to admin API /users/@user:dom/admin 2019-08-27 13:12:27 +01:00
appservice.py Remove double return statements (#5962) 2019-09-03 11:42:45 +01:00
auth.py Stop advertising unsupported flows for registration (#6107) 2019-09-25 12:10:26 +01:00
deactivate_account.py Incorporate review 2019-09-27 16:15:01 +01:00
device.py Opentrace device lists (#5853) 2019-09-03 10:21:30 +01:00
devicemessage.py Link the send loop with the edus contexts 2019-09-05 14:42:37 +01:00
directory.py Remove duplicate return statement 2019-07-31 13:24:51 +01:00
e2e_keys.py Opentrace e2e keys (#5855) 2019-08-22 11:28:12 +01:00
e2e_room_keys.py Opentrace e2e keys (#5855) 2019-08-22 11:28:12 +01:00
events.py Remove double return statements (#5962) 2019-09-03 11:42:45 +01:00
federation.py Typo 2019-10-04 11:21:24 +01:00
groups_local.py Correctly handle errors doing requests to group servers 2019-07-29 17:21:57 +01:00
identity.py Move lookup-related functions from RoomMemberHandler to IdentityHandler (#5978) 2019-09-27 10:36:20 +01:00
initial_sync.py Remove double return statements (#5962) 2019-09-03 11:42:45 +01:00
message.py Fix dummy event insertion consent bug (#6053) 2019-09-26 11:47:53 +01:00
pagination.py Servlet to purge old rooms (#5845) 2019-08-22 10:42:59 +01:00
presence.py Fix races in room stats (and other) updates. (#6187) 2019-10-10 11:29:01 +01:00
profile.py Increase max display name limit 2019-08-24 22:33:43 +01:00
read_marker.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
receipts.py Remove unnecessary parentheses around return statements (#5931) 2019-08-30 16:28:26 +01:00
register.py Remove unused variable 2019-10-03 17:42:32 +01:00
room_list.py Remove unused public room list timeout param (#6179) 2019-10-08 13:51:25 +01:00
room_member_worker.py Replace returnValue with return (#5736) 2019-07-23 23:00:55 +10:00
room_member.py Move tag/push rules room upgrade checking ealier (#6155) 2019-10-10 10:06:45 +01:00
room.py Use the v2 Identity Service API for lookups (MSC2134 + MSC2140) (#5976) 2019-09-11 16:02:42 +01:00
saml_handler.py More better logging 2019-09-20 11:20:02 +01:00
search.py Replace returnValue with return (#5736) 2019-07-23 23:00:55 +10:00
set_password.py Added possibilty to disable local password authentication (#5092) 2019-06-27 18:37:29 +01:00
state_deltas.py Replace returnValue with return (#5736) 2019-07-23 23:00:55 +10:00
stats.py Fix races in room stats (and other) updates. (#6187) 2019-10-10 11:29:01 +01:00
sync.py Remove double return statements (#5962) 2019-09-03 11:42:45 +01:00
typing.py Remove unnecessary parentheses around return statements (#5931) 2019-08-30 16:28:26 +01:00
user_directory.py Fix races in room stats (and other) updates. (#6187) 2019-10-10 11:29:01 +01:00