Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Concurrent event linearizer doesn't work when using event creator. #7792

@erikjohnston

Description

@erikjohnston

We have a linearizer that (tries) to stop more than 5 events being created and persisted concurrently for a given room. This is to prevent the failure mode where if events are written at a greater rate than they can be persisted the forward extremities count balloons, resulting in further degradation in performance.

When running with event creators the limit is enforced on the individual event creators. However, the persist event replication request to the event writer process can time out, resulting in the event creator thinking that the event is no longer being processed even though it still is being processed by the writer.

We can't simply move the linearizer to the event writer process as it needs to be applied before we select the prev events.

Metadata

Metadata

Assignees

Labels

z-bug(Deprecated Label)z-p2(Deprecated Label)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions