Reinis Vicups created MAPREDUCE-5876:
----------------------------------------
Summary: SequenceFileRecordReader NPE if close() is called before initialize()
Key: MAPREDUCE-5876
URL: https://issues.apache.org/jira/browse/MAPREDUCE-5876
Project: Hadoop Map/Reduce
Issue Type: Bug
Components: client
Affects Versions: 2.3.0
Reporter: Reinis Vicups
org.apache.hadoop.mapreduce.lib.input.SequenceFileRecordReader extends org.apache.hadoop.mapreduce.RecordReader
which in turn implements java.io.Closeable.
According to java spec the java.io.Closeable#close() has to be idempotent (http://docs.oracle.com/javase/7/docs/api/java/io/Closeable.html)
which is not.
An NPE is being thrown if close() method is invoked without previously calling initialize()
method. This happens because SequenceFile.Reader in is null.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
|