[
https://issues.apache.org/jira/browse/MAHOUT-1467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13938736#comment-13938736
]
Hudson commented on MAHOUT-1467:
--------------------------------
SUCCESS: Integrated in Mahout-Quality #2527 (See
[https://builds.apache.org/job/Mahout-Quality/2527/])
MAHOUT-1467:ClusterClassifier readPolicy leaks file handles (smarthi: rev
1578677)
* /mahout/trunk/CHANGELOG
*
/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/classify/ClusterClassifier.java
> ClusterClassifier readPolicy leaks file handles
> -----------------------------------------------
>
> Key: MAHOUT-1467
> URL: https://issues.apache.org/jira/browse/MAHOUT-1467
> Project: Mahout
> Issue Type: Bug
> Components: Clustering
> Affects Versions: 0.9
> Reporter: Avi Shinnar
> Assignee: Suneel Marthi
> Fix For: 1.0
>
> Attachments: MAHOUT-1467.patch
>
>
> The org.apache.mahout.clustering.classify.ClusterClassifier.readPolicy method
> leaks file handles.
> This leak causes a serious problems in setups that reuse JVMs for multiple
> tasks (as with "mapred.job.reuse.jvm.num.tasks").
> In more detail:
> The org.apache.mahout.clustering.classify.ClusterClassifier class has static
> methods to read policies: readPolicy.
> It opens a SequenceFile.Reader and reads from it, and then neglects to close
> it.
> suggested fix:
> add a call to reader.close() before the return statement in readPolicy
--
This message was sent by Atlassian JIRA
(v6.2#6252)