GitHub user jose-torres opened a pull request:

    [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 
    ## 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 SPARK-23416

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

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:
For additional commands, e-mail:

Reply via email to