Skip to content

Call processingReturn and register processingCompletion even if task fails to process exceptionally #271

Merged
ocadaruma merged 1 commit intoline:masterfrom
zzhen0v0:feature/processingreturn-exceptional-path
Mar 26, 2026
Merged

Call processingReturn and register processingCompletion even if task fails to process exceptionally #271
ocadaruma merged 1 commit intoline:masterfrom
zzhen0v0:feature/processingreturn-exceptional-path

Conversation

@zzhen0v0
Copy link
Copy Markdown
Contributor

Why

The tracing handle does not seem to handle the exceptional path if an exception is thrown from processing, which contradicts the handler's promises. It might result in trace leaks.

  1. processingCompletion
  2. processingReturn

What

This change is to move processingReturn to be called, and processingCompletion to be registered around the finally block, to guarantee no trace leak even in the exceptional path.

Copy link
Copy Markdown
Member

@ocadaruma ocadaruma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay, LGTM.
Thank you!!

@ocadaruma ocadaruma added the bugfix Fix a bug label Mar 26, 2026
@ocadaruma ocadaruma merged commit 5ada25f into line:master Mar 26, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Fix a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants