diff options
author | Sean Owen <sowen@cloudera.com> | 2016-02-13 21:05:48 -0800 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-02-13 21:05:48 -0800 |
commit | 388cd9ea8db2e438ebef9dfb894298f843438c43 (patch) | |
tree | 76cea19a4af431a507ecee1acaa55757f7bcbabf /sql/hive | |
parent | 610196f93a3a6de5af6a2af29a964be4e30f6e28 (diff) | |
download | spark-388cd9ea8db2e438ebef9dfb894298f843438c43.tar.gz spark-388cd9ea8db2e438ebef9dfb894298f843438c43.tar.bz2 spark-388cd9ea8db2e438ebef9dfb894298f843438c43.zip |
[SPARK-13172][CORE][SQL] Stop using RichException.getStackTrace it is deprecated
Replace `getStackTraceString` with `Utils.exceptionString`
Author: Sean Owen <sowen@cloudera.com>
Closes #11182 from srowen/SPARK-13172.
Diffstat (limited to 'sql/hive')
-rw-r--r-- | sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveSparkSubmitSuite.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveSparkSubmitSuite.scala b/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveSparkSubmitSuite.scala index 8932ce9503..f141a9bd0f 100644 --- a/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveSparkSubmitSuite.scala +++ b/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveSparkSubmitSuite.scala @@ -217,7 +217,7 @@ object SparkSubmitClassLoaderTest extends Logging { Utils.classForName(args(1)) } catch { case t: Throwable => - exception = t + "\n" + t.getStackTraceString + exception = t + "\n" + Utils.exceptionString(t) exception = exception.replaceAll("\n", "\n\t") } Option(exception).toSeq.iterator |