Skip to content

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

Open
zzhen0v0 wants to merge 1 commit intoline:masterfrom
zzhen0v0:feature/processingreturn-exceptional-path
Open

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

Conversation

@zzhen0v0
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant