mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 12:54:57 -04:00
Make handle_new_client_event
throws PartialStateConflictError
(#14665)
Then adapts calling code to retry when needed so it doesn't 500 to clients. Signed-off-by: Mathieu Velten <mathieuv@matrix.org> Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com>
This commit is contained in:
parent
046320b9b6
commit
54c012c5a8
7 changed files with 366 additions and 245 deletions
|
@ -375,6 +375,8 @@ class RoomBatchHandler:
|
|||
# Events are sorted by (topological_ordering, stream_ordering)
|
||||
# where topological_ordering is just depth.
|
||||
for (event, context) in reversed(events_to_persist):
|
||||
# This call can't raise `PartialStateConflictError` since we forbid
|
||||
# use of the historical batch API during partial state
|
||||
await self.event_creation_handler.handle_new_client_event(
|
||||
await self.create_requester_for_user_id_from_app_service(
|
||||
event.sender, app_service_requester.app_service
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue