hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiaoyu Yao (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-11103) Ozone: Cleanup some dependencies
Date Sun, 06 Nov 2016 03:38:59 GMT

    [ https://issues.apache.org/jira/browse/HDFS-11103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15641052#comment-15641052

Xiaoyu Yao commented on HDFS-11103:

Thanks [~anu] for working on this. The patch looks good to me overall. Just some NITS:
1. Line 55 
 volumePaths = dataDirs.toArray(new Path[0]); =>dataDirs.toArray(new Path[dataDirs.size()])

Allocate array to the right size to avoid unnecessary reallocate.

2. Can we add some comments for {{volumePaths}} and {{locations}} for example, one for container
data and one for container metadata?

3. Extra blank line 95
4. Do you consider maintaining a list of StorageLocation instead a list of Paths inside ContainerLocationManagerImpl
so that we can leverage the storage type information from StorageLocation for use case as
documented in ContainerLocationMangerImpl.java below. If this causes too much churn across
the code base. It is OK to leave this for later with some additional TODOs.
 *  For example : A user could map all container files to a SSD but leave data/metadata on
bunch of other disks.

> Ozone: Cleanup some dependencies
> --------------------------------
>                 Key: HDFS-11103
>                 URL: https://issues.apache.org/jira/browse/HDFS-11103
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: ozone
>    Affects Versions: HDFS-7240
>            Reporter: Anu Engineer
>            Assignee: Anu Engineer
>            Priority: Trivial
>             Fix For: HDFS-7240
>         Attachments: HDFS-11103-HDFS-7240.001.patch, HDFS-11103-HDFS-7240.002.patch
> Cleanup some unwanted dependencies.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org

View raw message