Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5D7831890D for ; Mon, 11 Jan 2016 22:17:40 +0000 (UTC) Received: (qmail 2042 invoked by uid 500); 11 Jan 2016 22:17:40 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 1979 invoked by uid 500); 11 Jan 2016 22:17:40 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 1953 invoked by uid 99); 11 Jan 2016 22:17:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jan 2016 22:17:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E19CB2C1F58 for ; Mon, 11 Jan 2016 22:17:39 +0000 (UTC) Date: Mon, 11 Jan 2016 22:17:39 +0000 (UTC) From: "Arpit Agarwal (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-9588) DiskBalancer : Add submitDiskbalancer RPC MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-9588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15092793#comment-15092793 ] Arpit Agarwal commented on HDFS-9588: ------------------------------------- Thanks for the updated patch [~anu]. A few minor comments. # We can probably remove the result code since lack of an exception is success. We take that approach for other responses in the same protocol. {code} message SubmitDiskBalancerPlanResponseProto { enum SubmitResults { OK = 0; // Plan accepted } required SubmitResults result = 1; {code} # Nitpick: indentation looks off. {code} /** * Submit a disk balancer plan for execution */ rpc submitDiskBalancerPlan(SubmitDiskBalancerPlanRequestProto) returns (SubmitDiskBalancerPlanResponseProto); {code} # Should this throw IOException instead of Exception? {code} public long submitDiskBalancerPlan(String planID, long planVersion, long bandwidth, String plan) throws Exception { {code} > DiskBalancer : Add submitDiskbalancer RPC > ----------------------------------------- > > Key: HDFS-9588 > URL: https://issues.apache.org/jira/browse/HDFS-9588 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: balancer & mover > Affects Versions: HDFS-1312 > Reporter: Anu Engineer > Assignee: Anu Engineer > Attachments: HDFS-9588-HDFS-1312.001.patch, HDFS-9588-HDFS-1312.002.patch, HDFS-9588-HDFS-1312.003.patch > > > Add a data node RPC that allows client to submit a diskbalancer plan to data node. -- This message was sent by Atlassian JIRA (v6.3.4#6332)