GitHub user jose-torres opened a pull request:

    https://github.com/apache/spark/pull/20602

    [SPARK-23416][SS] handle streaming interrupts in ThreadUtils.awaitResult()

    ## What changes were proposed in this pull request?
    
    StreamExecution.isInterruptedByStop() implements a whitelist of exceptions 
which indicate a benign stop() call. The DataSourceV2 write path introduces a 
new kind of exception, SparkException caused by InterruptedException, which 
must be added to this whitelist. (This exception comes from an interrupt in 
ThreadUtils.awaitResult().)
    
    ## How was this patch tested?
    
    Existing unit tests. Unfortunately, the underlying flakiness is reasonably 
rare, so I don't have a good idea for how to test that this resolves it.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jose-torres/spark SPARK-23416

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/20602.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 #20602
    
----
commit 24a621e1c30ca02436a6725c5646d216bf2d7118
Author: Jose Torres <jose@...>
Date:   2018-02-13T19:50:01Z

    add accommodation for ThreadUtils.awaitResult()

----


---

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

Reply via email to