[ https://issues.apache.org/jira/browse/MAPREDUCE-5918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14091715#comment-14091715 ]
Sergey Murylev commented on MAPREDUCE-5918: ------------------------------------------- Hi Ravi, Thanks for attention, I've added changes to org.apache.hadoop.mapreduce.lib.input.LineRecordReader and updated patch. 1) Yes, we need to update org.apache.hadoop.mapreduce.lib.input.LineRecordReader, I've attached changes. 2) Yes, I agree, CodecPool is not checking if the instance of Codec being "returned". > LineRecordReader can return the same decompressor to CodecPool multiple times > ----------------------------------------------------------------------------- > > Key: MAPREDUCE-5918 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-5918 > Project: Hadoop Map/Reduce > Issue Type: Bug > Affects Versions: 2.3.0 > Reporter: Sergey Murylev > Assignee: Sergey Murylev > Fix For: trunk > > Attachments: MAPREDUCE-5918.1.patch, MAPREDUCE-5918.2.patch > > > LineRecordReader can return the same decompressor to CodecPool multiple times > if method close() called multiple times. In this case CodecPool doesn't > guarantee that it always return different decompressors. This issue can cause > some difficult reproducible and difficult diagnosable bugs in Hadoop based > programs. -- This message was sent by Atlassian JIRA (v6.2#6252)