Github user FelixNeutatz commented on a diff in the pull request:
https://github.com/apache/incubator-flink/pull/201#discussion_r20849398
--- Diff:
flink-java/src/main/java/org/apache/flink/api/java/io/CsvInputFormat.java ---
@@ -137,6 +239,7 @@ public OUT readRecord(OUT reuse, byte[] bytes, int
offset, int numBytes) {
}
return reuse;
} else {
+ this.invalidLineCount++;
--- End diff --
There is checking for input correctness in
GenericCsvInputFormat.parseRecord() and the exception will be thrown their so
we will never come to this line:
14/11/25 09:46:36 INFO taskmanager.TaskManager: Shutting down TaskManager
Exception in thread "main"
org.apache.flink.runtime.client.JobExecutionException:
org.apache.flink.api.common.io.ParseException: Row too short: invalid line
at
org.apache.flink.api.common.io.GenericCsvInputFormat.parseRecord(GenericCsvInputFormat.java:284)
at
org.apache.flink.api.java.io.CsvInputFormat.readRecord(CsvInputFormat.java:235)
at
org.apache.flink.api.java.io.CsvInputFormat.readRecord(CsvInputFormat.java:1)
at
org.apache.flink.api.common.io.DelimitedInputFormat.nextRecord(DelimitedInputFormat.java:489)
at
org.apache.flink.api.java.io.CsvInputFormat.nextRecord(CsvInputFormat.java:203)
at
org.apache.flink.api.java.io.CsvInputFormat.nextRecord(CsvInputFormat.java:1)
at
org.apache.flink.runtime.operators.DataSourceTask.invoke(DataSourceTask.java:195)
at
org.apache.flink.runtime.execution.RuntimeEnvironment.run(RuntimeEnvironment.java:245)
at java.lang.Thread.run(Thread.java:745)
---
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.
---