Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v15] Prevent deadlocking event-handler on missing recordings #44772

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

rosstimothy
Copy link
Contributor

@rosstimothy rosstimothy commented Jul 29, 2024

Backport #44659 to branch/v15

Changelog: Reduced the probability that the event-handler deadlocks when encountering errors processing session recordings

If the number of session.upload events without a corresponding
session recording is higher than the configured concurrency, then
the event-handler could deadlock while attempting to find said
recording. To prevent this from occurring processing of session
recordings has been modified such that:

- if a recording does not exist and the session.upload event is
  from more than 48 hours in the past it is assumed to be lost
  and no more attempts to process the recording will happen
- all processing of recordings that were not found is now done in
  a separate background routine, instead of inline with event
  processing

The storage directory will now contain information about sessions
with a missing recording. The background routine will process them
periodically, capping the number of attempts per recording at 3.
@rosstimothy rosstimothy changed the title [v15] Prevent deadlocking event-handler on missing recordings (#44659) [v15] Prevent deadlocking event-handler on missing recordings Jul 29, 2024
@rosstimothy rosstimothy added this pull request to the merge queue Jul 29, 2024
Merged via the queue into branch/v15 with commit b6b420f Jul 29, 2024
34 of 36 checks passed
@rosstimothy rosstimothy deleted the tross/backport-44659/v15 branch July 29, 2024 22:02
@camscale camscale mentioned this pull request Jul 30, 2024
This was referenced Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants