GitHub user srowen opened a pull request:
https://github.com/apache/spark/pull/12418
[SPARK-8393] [STREAMING] JavaStreamingContext#awaitTermination() throws
non-declared InterruptedException
## What changes were proposed in this pull request?
`JavaStreamingContext.awaitTermination` methods should be declared as
`@throws[IOException]` so that this exception can be handled in Java code. Note
this is not just a doc change, but an API change, since now (in Java) the
method has a checked exception to handle. All await-like methods in Java APIs
behave this way, so seems worthwhile for 2.0.
## How was this patch tested?
Jenkins tests
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/srowen/spark SPARK-8393
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/12418.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 #12418
----
commit 8cfb3208d2919ee3563fde2634cb7ab95b2abeb8
Author: Sean Owen <[email protected]>
Date: 2016-04-15T13:05:19Z
JavaStreamingContext.awaitTermination methods should be declared as
@throws[IOException] so that this exception can be handled in Java code.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]