Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 71727200BC6 for ; Sun, 6 Nov 2016 04:39:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 6FD37160B09; Sun, 6 Nov 2016 03:39:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B5942160AEF for ; Sun, 6 Nov 2016 04:39:00 +0100 (CET) Received: (qmail 15717 invoked by uid 500); 6 Nov 2016 03:38:59 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 15697 invoked by uid 99); 6 Nov 2016 03:38:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Nov 2016 03:38:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 369152C0D55 for ; Sun, 6 Nov 2016 03:38:59 +0000 (UTC) Date: Sun, 6 Nov 2016 03:38:59 +0000 (UTC) From: "Xiaoyu Yao (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-11103) Ozone: Cleanup some dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 06 Nov 2016 03:39:01 -0000 [ 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: *ContainerLocationManagerImpl.java* 1. Line 55 {code} volumePaths = dataDirs.toArray(new Path[0]); =>dataDirs.toArray(new Path[dataDirs.size()]) {code} 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? *ContainerManagerImpl.java* 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. {code} * For example : A user could map all container files to a SSD but leave data/metadata on bunch of other disks. {code} > 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 (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org