You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/04/29 13:23:50 UTC

[GitHub] [spark] gaborgsomogyi commented on a change in pull request #24403: [SPARK-23014][SS] Fully remove V1 memory sink.

gaborgsomogyi commented on a change in pull request #24403: [SPARK-23014][SS] Fully remove V1 memory sink.
URL: https://github.com/apache/spark/pull/24403#discussion_r279360874
 
 

 ##########
 File path: core/src/main/scala/org/apache/spark/TestUtils.scala
 ##########
 @@ -192,6 +192,20 @@ private[spark] object TestUtils {
     assert(listener.numSpilledStages == 0, s"expected $identifier to not spill, but did")
   }
 
+  /**
+   * Asserts if exception message doesn't contain the message. Please note this checks all
+   * exceptions in the tree.
+   */
+  def assertExceptionMsg(exception: Throwable, msg: String): Unit = {
+    var e = exception
+    var contains = e.getMessage.contains(msg)
+    while (e.getCause != null && contains == false) {
 
 Review comment:
   Fixed.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org