You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Tianhan Hu (Jira)" <ji...@apache.org> on 2020/08/17 01:53:00 UTC
[jira] [Created] (SPARK-32631) Handle Null error message in hive
ThriftServer UI
Tianhan Hu created SPARK-32631:
----------------------------------
Summary: Handle Null error message in hive ThriftServer UI
Key: SPARK-32631
URL: https://issues.apache.org/jira/browse/SPARK-32631
Project: Spark
Issue Type: Improvement
Components: SQL
Affects Versions: 3.0.0
Reporter: Tianhan Hu
This fix is trying to prevent NullPointerException caused by Null error message by wrapping the message with Option and using getOrElse to handle Null value.
The possible reason why the error message would be null is that java Throwable allows the detailMessage to be null. However, in the render code we assume that the error message would be be null and try to do indexOf() on the string. Therefore, if some exception doesn't set the error message, it would trigger NullPointerException in the hive ThriftServer UI.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org