This is an automated email from the ASF dual-hosted git repository. dmollitor pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/hive.git
The following commit(s) were added to refs/heads/master by this push: new ac5941c HIVE-23065: Remove Calls to printStackTrace in Module hive-service (David Mollitor reviewed by Peter Vary) ac5941c is described below commit ac5941cf31754ee5fbfe4b6f0ca573c0948115a2 Author: David Mollitor <dmolli...@apache.org> AuthorDate: Tue Mar 24 10:58:08 2020 -0400 HIVE-23065: Remove Calls to printStackTrace in Module hive-service (David Mollitor reviewed by Peter Vary) --- .../org/apache/hive/service/cli/operation/HiveCommandOperation.java | 1 - .../src/java/org/apache/hive/service/cli/operation/SQLOperation.java | 2 -- 2 files changed, 3 deletions(-) diff --git a/service/src/java/org/apache/hive/service/cli/operation/HiveCommandOperation.java b/service/src/java/org/apache/hive/service/cli/operation/HiveCommandOperation.java index 8f04ec3..c83273b 100644 --- a/service/src/java/org/apache/hive/service/cli/operation/HiveCommandOperation.java +++ b/service/src/java/org/apache/hive/service/cli/operation/HiveCommandOperation.java @@ -91,7 +91,6 @@ public class HiveCommandOperation extends ExecuteStatementOperation { new SessionStream(System.err, true, StandardCharsets.UTF_8.name()); } catch (UnsupportedEncodingException ee) { LOG.error("Error creating PrintStream", e); - ee.printStackTrace(); sessionState.out = null; sessionState.err = null; } diff --git a/service/src/java/org/apache/hive/service/cli/operation/SQLOperation.java b/service/src/java/org/apache/hive/service/cli/operation/SQLOperation.java index 468ce10..4a35cf0 100644 --- a/service/src/java/org/apache/hive/service/cli/operation/SQLOperation.java +++ b/service/src/java/org/apache/hive/service/cli/operation/SQLOperation.java @@ -145,7 +145,6 @@ public class SQLOperation extends ExecuteStatementOperation { new SessionStream(System.err, true, StandardCharsets.UTF_8.name()); } catch (UnsupportedEncodingException e) { LOG.error("Error creating PrintStream", e); - e.printStackTrace(); sessionState.out = null; sessionState.info = null; sessionState.err = null; @@ -594,7 +593,6 @@ public class SQLOperation extends ExecuteStatementOperation { SerDeUtils.initializeSerDe(serde, queryState.getConf(), props, null); } catch (Exception ex) { - ex.printStackTrace(); throw new SQLException("Could not create ResultSet: " + ex.getMessage(), ex); } return serde;