GitHub user zsxwing opened a pull request:
https://github.com/apache/spark/pull/20413
[SC-9624][SS][TESTS] Don't access `lastExecution.executedPlan` in StreamTest
## What changes were proposed in this pull request?
`lastExecution.executedPlan` is lazy val so accessing it in StreamTest may
need to acquire the lock of `lastExecution`. It may be waiting forever when the
streaming thread is holding it and running a continuous Spark job.
This PR changes to check if `s.lastExecution` is null to avoid accessing
`lastExecution.executedPlan`.
## How was this patch tested?
Jenkins
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/zsxwing/spark SPARK-23245
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/20413.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #20413
----
commit 3ce18c47fb50f6c1f12db1fb34a6196e5040694d
Author: Jose Torres <jose@...>
Date: 2018-01-26T22:57:18Z
better check
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]