You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Ivan Suller (JIRA)" <ji...@apache.org> on 2019/07/30 12:04:00 UTC
[jira] [Created] (HIVE-22060) Replacing "catch Throwable" with a
more restricted exception class
Ivan Suller created HIVE-22060:
----------------------------------
Summary: Replacing "catch Throwable" with a more restricted exception class
Key: HIVE-22060
URL: https://issues.apache.org/jira/browse/HIVE-22060
Project: Hive
Issue Type: Improvement
Components: Hive
Reporter: Ivan Suller
Assignee: Ivan Suller
Catching Throwable considered unsafe in Java. A Throwable can be any Error and those are JVM errors after the state of the JVM is not guaranteed thus the cleanest way to "handle" the error is to let it kill the current thread.
I ran a quick scan and found almost 400 "catch Throwable" in the current codebase. I opened this ticket as a conversation starter to:
- discuss if we want to eliminate this issue
- if we want to do it what's the best way to do it
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)