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 61AFD200C4E for ; Fri, 21 Apr 2017 19:34:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 60663160B86; Fri, 21 Apr 2017 17:34:10 +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 73959160B97 for ; Fri, 21 Apr 2017 19:34:09 +0200 (CEST) Received: (qmail 23537 invoked by uid 500); 21 Apr 2017 17:34:08 -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 23526 invoked by uid 99); 21 Apr 2017 17:34:08 -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; Fri, 21 Apr 2017 17:34:08 +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 AEC091A02F3 for ; Fri, 21 Apr 2017 17:34:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[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 rPt7qNscyFi1 for ; Fri, 21 Apr 2017 17:34:06 +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 A6567619E2 for ; Fri, 21 Apr 2017 17:34:05 +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 527F6E0BCD for ; Fri, 21 Apr 2017 17:34:05 +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 5586621B5E for ; Fri, 21 Apr 2017 17:34:04 +0000 (UTC) Date: Fri, 21 Apr 2017 17:34:04 +0000 (UTC) From: "Xiaoyu Yao (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-11493) Ozone: SCM: Add the ability to handle container reports MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 21 Apr 2017 17:34:10 -0000 [ https://issues.apache.org/jira/browse/HDFS-11493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15979105#comment-15979105 ] Xiaoyu Yao commented on HDFS-11493: ----------------------------------- Thanks [~anu] for working on this. The patch looks good to me. Below are some initial comments on the production code. I will post my review on the unit test later. OzoneConfigKeys.java NIT: Line 91 can we rename "ozone.scm.container.report.processing.lag.seconds" to "ozone.scm.container.report.processing.interval.seconds" NIT: Line 99: can we rename "ozone.scm.max.wait.for.container.reports.in.seconds" to "ozone.scm.container.reports.wait.timeout.seconds" CommandQueue.java NIT: Line 135 "command" -> Commands NodePoolManager.java NIT: unnecessary empty line change PeriodicPool.java Line 26: should we use AtomicLong for totalProcessedCount? Line 92: miss javadoc for getLastProcessTime ContainerReplicationManager.java Line 87: NIT: move before line 79? Line 119: we should ensure the executorService is shutdown properly. Line 121: extra leading space in the name string " Container Reports..." Line 135: NIT: need add an empty line Line 145: can you elaborate on the two cases? Line 190: computerPoolDifference assumes the newPool is made a copy in the method and the oldPool is made a copy by the caller This can be optimized with Java8 or Guava Sets.difference Line 208: PerodicPool#lastProcessTime is never changed with this patch. Can you add TODO: if this will be changed in later patches. Line 243: we restart the poolProcessThread if UncaughtException is hit. Could this cause infinite loop in certain cases? ReplicationDatanodeStateManager.java Line 53: missing java doc for some parameters Line 66: can we define some SCM specific exception here? Line 70: Random r can be moved to member to avoid new Random() for each getContainerReport call. > Ozone: SCM: Add the ability to handle container reports > --------------------------------------------------------- > > Key: HDFS-11493 > URL: https://issues.apache.org/jira/browse/HDFS-11493 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: ozone > Affects Versions: HDFS-7240 > Reporter: Anu Engineer > Assignee: Anu Engineer > Attachments: container-replication-storage.pdf, HDFS-11493-HDFS-7240.001.patch > > > Once a datanode sends the container report it is SCM's responsibility to determine if the replication levels are acceptable. If it is not, SCM should initiate a replication request to another datanode. This JIRA tracks how SCM handles a container report. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org