[ 
https://issues.apache.org/jira/browse/MAPREDUCE-6972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16208735#comment-16208735
 ] 

Hudson commented on MAPREDUCE-6972:
-----------------------------------

SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #13102 (See 
[https://builds.apache.org/job/Hadoop-trunk-Commit/13102/])
MAPREDUCE-6972. Enable try-with-resources for RecordReader. Contributed 
(aajisaka: rev 2523e1cce5f6d6c3762c958c7f3138ab486c8497)
* (edit) 
hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/RecordReader.java


> Enable try-with-resources for RecordReader
> ------------------------------------------
>
>                 Key: MAPREDUCE-6972
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6972
>             Project: Hadoop Map/Reduce
>          Issue Type: Improvement
>            Reporter: Zoltan Haindrich
>            Assignee: Zoltan Haindrich
>             Fix For: 3.0.0
>
>         Attachments: MAPREDUCE-6972.01.patch, MAPREDUCE-6972.02.patch
>
>
> {{org.apache.hadoop.mapred.RecordReader}} has a close method; but doesn't 
> implement closeable; it would be nice to add that - it would enable to use:
> {code}
> try( org.apache.hadoop.mapred.RecordReader<?, ?> recordReader = 
> inputFormat.getRecordReader(... )   ){
>  [...]
> }
> {code}
> ...supporting t-w-r makes it easier to throw exceptions more safely



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to