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 A27CE200BEA for ; Mon, 12 Dec 2016 18:37:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A1388160B1A; Mon, 12 Dec 2016 17:37:00 +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 E9D66160B2A for ; Mon, 12 Dec 2016 18:36:59 +0100 (CET) Received: (qmail 64091 invoked by uid 500); 12 Dec 2016 17:36:58 -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 64052 invoked by uid 99); 12 Dec 2016 17:36:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Dec 2016 17:36:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 634F72C03E2 for ; Mon, 12 Dec 2016 17:36:58 +0000 (UTC) Date: Mon, 12 Dec 2016 17:36:58 +0000 (UTC) From: "Rakesh R (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-11123) [SPS] Make storage policy satisfier daemon work on/off dynamically MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 12 Dec 2016 17:37:00 -0000 [ https://issues.apache.org/jira/browse/HDFS-11123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15742548#comment-15742548 ] Rakesh R commented on HDFS-11123: --------------------------------- Thanks [~umamaheswararao] for the patch. Just two comments: # Can we avoid adding {{blksMovementResults}} to the monitor thread if SPS is not running. {code} FSNamesystem#handleHeartbeat if (blockManager.getStoragePolicySatisfier() != null) { blockManager.getStoragePolicySatisfier() .handleBlocksStorageMovementResults(blksMovementResults); } {code} # It would be good to add debug logs here. {code} + if (sps == null || sps.isRunning()) { + return; + } {code} {code} + if (sps == null) { + return; + } {code} > [SPS] Make storage policy satisfier daemon work on/off dynamically > ------------------------------------------------------------------ > > Key: HDFS-11123 > URL: https://issues.apache.org/jira/browse/HDFS-11123 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: datanode, namenode > Reporter: Uma Maheswara Rao G > Assignee: Uma Maheswara Rao G > Attachments: HDFS-10285-HDFS-11123.00.patch, HDFS-11123-HDFS-10285-00.patch > > > The idea of this task is to make SPS daemon thread to start/stop dynamically in Namenode process with out needing to restart complete Namenode. > So, this will help in the case of admin wants to switch of this SPS and wants to run Mover tool externally. -- 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