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 09908200D29 for ; Thu, 12 Oct 2017 06:04:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 07FFA1609E5; Thu, 12 Oct 2017 04:04:13 +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 27FF3160BE3 for ; Thu, 12 Oct 2017 06:04:12 +0200 (CEST) Received: (qmail 3330 invoked by uid 500); 12 Oct 2017 04:04:05 -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 2727 invoked by uid 99); 12 Oct 2017 04:04:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Oct 2017 04:04:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id A0B421A242F for ; Thu, 12 Oct 2017 04:04:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id muLhUu1XPTfi for ; Thu, 12 Oct 2017 04:04:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 62DCC60DF2 for ; Thu, 12 Oct 2017 04:04:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 69BF2E0EF0 for ; Thu, 12 Oct 2017 04:04:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id AE1FC2539E for ; Thu, 12 Oct 2017 04:04:00 +0000 (UTC) Date: Thu, 12 Oct 2017 04:04:00 +0000 (UTC) From: "Uma Maheswara Rao G (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (HDFS-12570) [SPS]: Refactor Co-ordinator datanode logic to track the block storage movements MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 12 Oct 2017 04:04:13 -0000 [ https://issues.apache.org/jira/browse/HDFS-12570?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1619= 8546#comment-16198546 ]=20 Uma Maheswara Rao G edited comment on HDFS-12570 at 10/12/17 4:03 AM: ---------------------------------------------------------------------- [~rakeshr] Thank you for updating the patch. Patch mostly looks good to me,= except the below comments * . {code} public static final String DFS_STORAGE_POLICY_SATISFIER_SHARE_EQUAL_REPLICA= _MAX_STREAMS_KEY =3D + "dfs.storage.policy.satisfier.share.equal.replication.max-streams"; + public static final boolean DFS_STORAGE_POLICY_SATISFIER_SHARE_EQUAL_REP= LICA_MAX_STREAMS_DEFAULT =3D + false; {code} I am thinking this config can be more meaningful. How about something like,= "dfs.storage.policy.satisfier.low.max-streams.preference=E2=80=9D. This ca= n be true by default. Any other better names are most welcomed. * finshedBlksIter =E2=80=94 finishedBlksIter * We are removing the state: status =3D BlocksMovingAnalysisStatus.FEW_BLOC= KS_TARGETS_PAIRED; how are we covering the case when we can=E2=80=99t find any targets at all = even though there are movement needed blocks? What is the status for this? * . {code} // 'BlockCollectionId' is used as the tracking ID. All the blocks under + // this + // blockCollectionID will be added to this datanode. + // TODO: assign to each target node {code} Please remove this comment or update. * . {code} + ((DatanodeDescriptor) blkMovingInfo.getTarget()) + .addBlocksToMoveStorage(blkMovingInfo); {code} Could we also increment scheduled block count for this node? * BlockStorageMovementCommand: We removed tracked, but class java doc still= representing old behavior. * Documentation needs update. was (Author: umamaheswararao): [~rakeshr] Thank you for updating the patch. Patch mostly looks good to me,= except the below comments * . {code} public static final String DFS_STORAGE_POLICY_SATISFIER_SHARE_EQUAL_REPLICA= _MAX_STREAMS_KEY =3D + "dfs.storage.policy.satisfier.share.equal.replication.max-streams"; + public static final boolean DFS_STORAGE_POLICY_SATISFIER_SHARE_EQUAL_REP= LICA_MAX_STREAMS_DEFAULT =3D + false; {code} I am thinking this config can be more meaningful. How about something like,= "dfs.storage.policy.satisfier.low.max-streams.preference=E2=80=9D. This ca= n be true by default. Any other better names are most welcomed. * finshedBlksIter =E2=80=94 finihedBlksIter * We are removing the state: status =3D BlocksMovingAnalysisStatus.FEW_BLOC= KS_TARGETS_PAIRED; how are we covering the case when we can=E2=80=99t find any targets at all = even though there are movement needed blocks? What is the status for this? * . {code} // 'BlockCollectionId' is used as the tracking ID. All the blocks under + // this + // blockCollectionID will be added to this datanode. + // TODO: assign to each target node {code} Please remove this comment or update. * . {code} + ((DatanodeDescriptor) blkMovingInfo.getTarget()) + .addBlocksToMoveStorage(blkMovingInfo); {code} Could we also increment scheduled block count for this node? * BlockStorageMovementCommand: We removed tracked, but class java doc still= representing old behavior. > [SPS]: Refactor Co-ordinator datanode logic to track the block storage mo= vements > -------------------------------------------------------------------------= ------- > > Key: HDFS-12570 > URL: https://issues.apache.org/jira/browse/HDFS-12570 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: datanode, namenode > Reporter: Rakesh R > Assignee: Rakesh R > Attachments: HDFS-12570-HDFS-10285-00.patch, HDFS-12570-HDFS-1028= 5-01.patch, HDFS-12570-HDFS-10285-02.patch > > > This task is to refactor the C-DN block storage movements. Basically, the= idea is to move the scheduling and tracking logic to Namenode rather than = at the special C-DN. Please refer the discussion with [~andrew.wang] to und= erstand the [background and the necessity of refactoring|https://issues.apa= che.org/jira/browse/HDFS-10285?focusedCommentId=3D16141060&page=3Dcom.atlas= sian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16141060]. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org