Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

[NSE-1141] Replace ValueOrDie with status check to avoid executor die #1143

Merged
merged 1 commit into from
Oct 24, 2022

Conversation

jackylee-ch
Copy link
Contributor

What changes were proposed in this pull request?

Currently we use ValueOrDie to check the status, such as LazyBatchIterator.AdvanceTo, and it will directly hang up the current process if there is an exception caused bad status. However, in many cases, it is sufficient to just throw an exception rather than hang up the process, such as the FetchFailedException, which means fetch block failed from other executor. And for Spark, the hanging of the executor process is much more serious than throwing exception, because this will lead to a large number of task recalculations, which may lead to more serious problems.

How was this patch tested?

unit tests and manual tests.

@github-actions
Copy link

#1141

@zhouyuan zhouyuan merged commit d8fe25b into oap-project:main Oct 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants