[
https://issues.apache.org/jira/browse/HDFS-8546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14602959#comment-14602959
]
Hudson commented on HDFS-8546:
------------------------------
SUCCESS: Integrated in Hadoop-Hdfs-trunk #2168 (See
[https://builds.apache.org/job/Hadoop-Hdfs-trunk/2168/])
HDFS-8546. Use try with resources in DataStorage and Storage. (wang: rev
1403b84b122fb76ef2b085a728b5402c32499c1f)
*
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/common/Storage.java
*
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataStorage.java
* hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
> Use try with resources in DataStorage and Storage
> -------------------------------------------------
>
> Key: HDFS-8546
> URL: https://issues.apache.org/jira/browse/HDFS-8546
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: datanode
> Affects Versions: 2.7.0
> Reporter: Andrew Wang
> Assignee: Andrew Wang
> Priority: Minor
> Fix For: 2.8.0
>
> Attachments: HDFS-8546.001.patch, HDFS-8546.002.patch,
> HDFS-8546.003.patch, HDFS-8546.004.patch, HDFS-8546.005.patch,
> HDFS-8546.006.patch
>
>
> We have some old-style try/finally to close files in DataStorage and Storage,
> let's update them.
> Also a few small cleanups:
> * Actually check that tryLock returns a FileLock in isPreUpgradableLayout
> * Remove unused parameter from writeProperties
> * Add braces for one-line if statements per coding style
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)