[#1743] fix: Add exception handling for thread pools by rickyma · Pull Request #1744 · apache/uniffle · GitHub
Skip to content

[#1743] fix: Add exception handling for thread pools#1744

Merged
zuston merged 2 commits into
apache:masterfrom
rickyma:issue-1743
May 30, 2024
Merged

[#1743] fix: Add exception handling for thread pools#1744
zuston merged 2 commits into
apache:masterfrom
rickyma:issue-1743

Conversation

@rickyma

@rickyma rickyma commented May 28, 2024

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Add exception handling for thread pools.

Why are the changes needed?

Fix: #1743.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Existing UTs.

@github-actions

github-actions Bot commented May 28, 2024

Copy link
Copy Markdown

@rickyma

rickyma commented May 28, 2024

Copy link
Copy Markdown
Contributor Author

@zuston @jerqi PTAL.

@zuston zuston left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If exception happens in the closures, the execution exception will be thrown

@rickyma

rickyma commented May 29, 2024

Copy link
Copy Markdown
Contributor Author

At least from the tests I've conducted, no exceptions have been thrown out.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This should not be covered, because it is wrapped by the CompletableFutureExtension, and then exception will be thrown

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

@rickyma rickyma requested a review from zuston May 30, 2024 04:09

@zuston zuston left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@zuston zuston merged commit 8d49063 into apache:master May 30, 2024
zhengchenyu pushed a commit that referenced this pull request Aug 2, 2024
### What changes were proposed in this pull request?

Add exception handling for thread pools.

### Why are the changes needed?

Fix: #1743.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Existing UTs.
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.

[Bug] Add exception handling for thread pools

2 participants