Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HIVE-24411: Make ThreadPoolExecutorWithOomHook more awareness of OutO… #1695

Merged
merged 1 commit into from Jan 26, 2021

Conversation

dengzhhu653
Copy link
Member

…fMemoryError

What changes were proposed in this pull request?

Check the root cause of failed tasks to see if that is an instance of OutOfMemoryError.

Why are the changes needed?

Now the ThreadPoolExecutorWithOomHook invokes some oom hooks and stops the HiveServer2 in case of OutOfMemoryError when executing the tasks. The exception is obtained by calling method future.get(), however the exception may never be an instance of OutOfMemoryError, as the exception is wrapped in ExecutionException, see the method report in class FutureTask.

Does this PR introduce any user-facing change?

No

How was this patch tested?

unit test

@dengzhhu653
Copy link
Member Author

@kgyrtkirk could you please take a look? thanks!

@kgyrtkirk
Copy link
Member

sorry @dengzhhu653 ; I've missed your initial ping

@dengzhhu653
Copy link
Member Author

sorry @dengzhhu653 ; I've missed your initial ping

Thank you very much for the review

@kgyrtkirk kgyrtkirk merged commit d8034c8 into apache:master Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants