[
https://issues.apache.org/jira/browse/MAPREDUCE-1921?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Arun C Murthy updated MAPREDUCE-1921:
-------------------------------------
Status: Open (was: Patch Available)
Krishna, some comments:
1. Minor nit: The exception handling code could be slightly better in both
moveToNext and nextKeyValue as:
protected synchronized boolean moveToNext(K key, V value)
throws IOException {
- reporter.setProgress(getProgress());
- beforePos = getPos();
- boolean ret = rawIn.next(key, value);
- afterPos = getPos();
+ boolean ret = false;
+ try {
+ reporter.setProgress(getProgress());
+ beforePos = getPos();
+ ret = rawIn.next(key, value);
+ afterPos = getPos();
+ } catch (IOException ioe) {
+ if (split instanceof FileSplit) {
+ LOG.error("IO error in map input file " +
conf.get("map.input.file"));
+ throw new IOException("IO error in map input file "
+ + conf.get("map.input.file"), ioe);
+ }
+ }
return ret;
2. The test-case doesn't seem to check for the file name in the failure?
> IOExceptions should contain the filename of the broken input files
> ------------------------------------------------------------------
>
> Key: MAPREDUCE-1921
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-1921
> Project: Hadoop Map/Reduce
> Issue Type: Improvement
> Reporter: Krishna Ramachandran
> Assignee: Krishna Ramachandran
> Attachments: mapred-1921-1.patch, mapreduce-1921.patch
>
>
> If bzip or other decompression fails, the IOException does not contain the
> name of the broken file that caused the exception.
> It would be nice if such actions could be avoided in the future by having the
> name of the files that are broken spelled
> out in the exception.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.