[
https://issues.apache.org/jira/browse/HDFS-8051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14394980#comment-14394980
]
Colin Patrick McCabe commented on HDFS-8051:
--------------------------------------------
+1. Thanks, Eddy.
> FsVolumeList#addVolume should release volume reference if not put it into
> BlockScanner.
> ---------------------------------------------------------------------------------------
>
> Key: HDFS-8051
> URL: https://issues.apache.org/jira/browse/HDFS-8051
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: datanode
> Affects Versions: 2.6.0
> Reporter: Lei (Eddy) Xu
> Assignee: Lei (Eddy) Xu
> Attachments: HDFS-8051.000.patch
>
>
> {{FsVolumeList#addVolume()}} passes {{FsVolumeReference}} to blockScanner:
> {code}
> if (blockScanner != null) {
> blockScanner.addVolumeScanner(ref);
> }
> {code}
> However, if {{blockScanner == null}}, the {{FsVolumeReference}} will not be
> released.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)