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/02 03:54:01 UTC
[jira] [Commented] (FLINK-6422) Unreachable code in
FileInputFormat#createInputSplits
[ https://issues.apache.org/jira/browse/FLINK-6422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16071483#comment-16071483 ]
ASF GitHub Bot commented on FLINK-6422:
---------------------------------------
Github user tedyu commented on the issue:
https://github.com/apache/flink/pull/4202
Can you take a look at the error in CI ?
> Unreachable code in FileInputFormat#createInputSplits
> -----------------------------------------------------
>
> Key: FLINK-6422
> URL: https://issues.apache.org/jira/browse/FLINK-6422
> Project: Flink
> Issue Type: Bug
> Components: Batch Connectors and Input/Output Formats
> Reporter: Ted Yu
> Assignee: mingleizhang
> Priority: Minor
>
> Here is related code:
> {code}
> if (minNumSplits < 1) {
> throw new IllegalArgumentException("Number of input splits has to be at least 1.");
> }
> ...
> final long maxSplitSize = (minNumSplits < 1) ? Long.MAX_VALUE : (totalLength / minNumSplits +
> (totalLength % minNumSplits == 0 ? 0 : 1));
> {code}
> minNumSplits wouldn't be less than 1 getting to the assignment of maxSplitSize.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)