Skip to content

Fix event handler to gracefully drop malformed sessions#62073

Merged
kshi36 merged 3 commits intomasterfrom
kevin/event-handler-malformed-handling
Dec 10, 2025
Merged

Fix event handler to gracefully drop malformed sessions#62073
kshi36 merged 3 commits intomasterfrom
kevin/event-handler-malformed-handling

Conversation

@kshi36
Copy link
Copy Markdown
Contributor

@kshi36 kshi36 commented Dec 8, 2025

Fixes #60317

Instead of panicking when ingesting malformed session events, the event handler now logs the errors and gracefully drops them. This change refactors SpawnCriticalJob to eliminate the panic by aligning behavior with IterateMissingRecordings.

In addition, for ingesting missing session recordings, the max in-flight sessions is now controlled by a value of double the concurrency, instead of a fixed 10. This ensures regular ingestion and missing recordings ingestion is synced to one field.

changelog: Fixed bug where event handler dies on malformed session events
changelog: Updated event handler to ingest missing session recordings at twice the concurrency instead of only 10 sessions at a time

@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from tigrato December 10, 2025 18:42
@kshi36 kshi36 added this pull request to the merge queue Dec 10, 2025
Merged via the queue into master with commit 39b557f Dec 10, 2025
43 checks passed
@kshi36 kshi36 deleted the kevin/event-handler-malformed-handling branch December 10, 2025 19:24
@backport-bot-workflows
Copy link
Copy Markdown
Contributor

@kshi36 See the table below for backport results.

Branch Result
branch/v17 Create PR
branch/v18 Create PR

21KennethTran pushed a commit that referenced this pull request Jan 6, 2026
* Update event handler to gracefully drop malformed sessions

* Fix lint

* Set IterateMissingRecordings in-flight sessions to double the concurrency
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.

Event handler dies when facing a malformed session start event

4 participants