You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Suresh Srinivas (JIRA)" <ji...@apache.org> on 2011/03/09 09:48:59 UTC
[jira] Resolved: (HDFS-1720) Federation: FSVolumeSet volumes is not
synchronized correctly
[ https://issues.apache.org/jira/browse/HDFS-1720?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Suresh Srinivas resolved HDFS-1720.
-----------------------------------
Resolution: Fixed
Hadoop Flags: [Reviewed]
I committed this patch.
> Federation: FSVolumeSet volumes is not synchronized correctly
> --------------------------------------------------------------
>
> Key: HDFS-1720
> URL: https://issues.apache.org/jira/browse/HDFS-1720
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: data-node
> Affects Versions: Federation Branch
> Reporter: Suresh Srinivas
> Assignee: Suresh Srinivas
> Fix For: Federation Branch
>
> Attachments: HDFS-1720.1.patch, HDFS-1720.patch
>
>
> Currently FSVolumeSet#volumes is package private and is exposed to outside classes:
> # Only some methods (such as FSVolumeSet#checkDirs()) are synchronized on FSVolumeSet.this. This method changes the
> content of the array (sets volumes with errors to null).
> # Some access to volumes are synchronized by FSDataset.this. Some access are not synchronized at all.
> I propose making FSVolumeSet#unmodifiable list. This prevents accidental mutation from outside the class. The volumes
> also are created anew when modifications are made.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira