You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2020/08/17 02:02:00 UTC

[jira] [Commented] (SPARK-32631) Handle Null error message in hive ThriftServer UI

    [ https://issues.apache.org/jira/browse/SPARK-32631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17178680#comment-17178680 ] 

Apache Spark commented on SPARK-32631:
--------------------------------------

User 'tianhanhu' has created a pull request for this issue:
https://github.com/apache/spark/pull/29447

> 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
>            Priority: Major
>
> 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