hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lei (Eddy) Xu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-7758) Retire FsDatasetSpi#getVolumes() and use FsDatasetSpi#getVolumeRefs() instead
Date Tue, 10 Feb 2015 01:31:35 GMT
Lei (Eddy) Xu created HDFS-7758:
-----------------------------------

             Summary: Retire FsDatasetSpi#getVolumes() and use FsDatasetSpi#getVolumeRefs()
instead
                 Key: HDFS-7758
                 URL: https://issues.apache.org/jira/browse/HDFS-7758
             Project: Hadoop HDFS
          Issue Type: Improvement
          Components: datanode
    Affects Versions: 2.6.0
            Reporter: Lei (Eddy) Xu
            Assignee: Lei (Eddy) Xu


HDFS-7496 introduced reference-counting  the volume instances being used to prevent race condition
when hot swapping a volume.

However, {{FsDatasetSpi#getVolumes()}} can still leak the volume instance without increasing
its reference count. In this JIRA, we retire the {{FsDatasetSpi#getVolumes()}} and propose
{{FsDatasetSpi#getVolumeRefs()}} and etc. method to access {{FsVolume}}. Thus it makes sure
that the consumer of {{FsVolume}} always has correct reference count.



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

Mime
View raw message