You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/07/13 07:26:00 UTC
[jira] [Commented] (FLINK-6105) Properly handle
InterruptedException in HadoopInputFormatBase
[ https://issues.apache.org/jira/browse/FLINK-6105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16085305#comment-16085305 ]
ASF GitHub Bot commented on FLINK-6105:
---------------------------------------
GitHub user zhangminglei opened a pull request:
https://github.com/apache/flink/pull/4316
[FLINK-6105] Use InterruptedIOException instead of IOException
This is my first commit of this. It might be have other places also do this change, but I am not sure now.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/zhangminglei/flink flink-6105
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/4316.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 #4316
----
commit 8fb6cf5926643e4c7de967eafa0cef358f174431
Author: zhangminglei <zm...@163.com>
Date: 2017-07-13T07:23:20Z
[FLINK-6105] Use InterruptedIOException instead of IOException
----
> Properly handle InterruptedException in HadoopInputFormatBase
> -------------------------------------------------------------
>
> Key: FLINK-6105
> URL: https://issues.apache.org/jira/browse/FLINK-6105
> Project: Flink
> Issue Type: Bug
> Components: DataStream API
> Reporter: Ted Yu
> Assignee: mingleizhang
>
> When catching InterruptedException, we should throw InterruptedIOException instead of IOException.
> The following example is from HadoopInputFormatBase :
> {code}
> try {
> splits = this.mapreduceInputFormat.getSplits(jobContext);
> } catch (InterruptedException e) {
> throw new IOException("Could not get Splits.", e);
> }
> {code}
> There may be other places where IOE is thrown.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)