[ https://issues.apache.org/jira/browse/FLINK-6422?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tzu-Li (Gordon) Tai resolved FLINK-6422. ---------------------------------------- Resolution: Fixed Fixed for master via df859fb284f0cefd8ff31bd511d2719469de9fdc. Fixed for 1.3 via 530a4d1f6ca7a55933563a949393046f58b23af9. > 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)