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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to