hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Haibo Chen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (MAPREDUCE-6431) JobClient should be an AutoClosable
Date Wed, 27 Jan 2016 22:34:39 GMT

     [ https://issues.apache.org/jira/browse/MAPREDUCE-6431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Haibo Chen updated MAPREDUCE-6431:
----------------------------------
    Attachment: mapreduce6431.002.patch

added unit test for autoclosable interface

> JobClient should be an AutoClosable
> -----------------------------------
>
>                 Key: MAPREDUCE-6431
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6431
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 2.7.1
>            Reporter: André Kelpe
>            Assignee: Haibo Chen
>         Attachments: mapreduce6431.001.patch, mapreduce6431.002.patch
>
>
> Since the new target version if Java is 7, it would be great if JobClient could implement
the java.lang.AutoClosable interface, so that it can be used in try-with-ressource statements.
See here: https://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message