Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Not A Problem
-
None
-
None
-
None
-
None
Description
Here is related code:
try { for(in = new SequenceFile.Reader(fs, srcs, job); in.next(key, value); ) { ... finally { in.close(); }
SequenceFile.Writer opWriter = null; try { opWriter = SequenceFile.createWriter(fs, jobconf, opList, Text.class, FileOperation.class, SequenceFile.CompressionType.NONE); ... } finally { opWriter.close(); }
If ctor of Reader / Writer throws exception, the close() would be called on null object.