Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Convert both exception message and stack trace to string
  • Loading branch information
tdas committed Aug 17, 2016
commit 60eabcc4716f26e0c6d688d14b518f7321313f88
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ class StreamExecution(
} finally {
state = TERMINATED
sparkSession.streams.notifyQueryTermination(StreamExecution.this)
postEvent(new QueryTerminated(this.toInfo, exception.map(_.getMessage)))
postEvent(new QueryTerminated(this.toInfo, exception.map(_.cause).map(Utils.exceptionString)))
terminationLatch.countDown()
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ class StreamingQueryListenerSuite extends StreamTest with BeforeAndAfter {
// Make sure that the exception message reported through listener
// contains the actual exception and relevant stack trace
assert(!listener.terminationException.get.contains("StreamingQueryException"))
assert(listener.terminationException.get.contains("terminated with exception"))
assert(listener.terminationException.get.contains("java.lang.ArithmeticException"))
assert(listener.terminationException.get.contains("StreamingQueryListenerSuite"))
}
Expand Down