[ https://issues.apache.org/jira/browse/HDFS-8051?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lei (Eddy) Xu updated HDFS-8051: -------------------------------- Attachment: HDFS-8051.000.patch This patch releases {{FsVolumeReference}} in {{FsVolumeList#addVolume}} if {{blockScanner}} is not presented. A test case is also added. > 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)