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 2ADC7200BBB for ; Thu, 10 Nov 2016 22:32:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 2984C160B10; Thu, 10 Nov 2016 21:32: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 72127160AF7 for ; Thu, 10 Nov 2016 22:31:59 +0100 (CET) Received: (qmail 4840 invoked by uid 500); 10 Nov 2016 21:31: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 4820 invoked by uid 99); 10 Nov 2016 21:31:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Nov 2016 21:31:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 735F62C4C70 for ; Thu, 10 Nov 2016 21:31:58 +0000 (UTC) Date: Thu, 10 Nov 2016 21:31:58 +0000 (UTC) From: "Anu Engineer (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (HDFS-11127) Block Storage : add block storage service protocol MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 10 Nov 2016 21:32:00 -0000 [ https://issues.apache.org/jira/browse/HDFS-11127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15655203#comment-15655203 ] Anu Engineer edited comment on HDFS-11127 at 11/10/16 9:31 PM: --------------------------------------------------------------- When do a list volume operation I would presume that we would like to see the following information. Username, VolumeName, VolumeSize, BlockSize and ACLs. So you can either make {{usage}} an optional field in the {{VolumeInfoProto}} thus avoid call into SCM for listing operations or add these extra fields to {{ListVolumeEntryProto}}. Your call on how you want it done. From code or complexity perspective they look same to me. bq. if this field is missing (user not specify block size), CBlock server will use 4KB. When you add a default option in the protoc file, you are making that explicit. Otherwise that assumption is hidden inside the cBlock Server code. But as I said it is not something that I feel strongly about so feel free to implement it anyway you think is good. was (Author: anu): When do a list volume operation I would presume that we would like to see the following information. Username, VolumeName, VolumeSize, BlockSize and ACLs. So you can either make {{usage}} an optional field in the {{VolumeInfoProto}} thus avoid call into SCM for listing operations or add these extra fields to {{ListVolumeEntryProto}}. Your call on how you want it done. From code or complxity perspective they look same to me. bq. if this field is missing (user not specify block size), CBlock server will use 4KB. When you add a default option in the protoc file, you are making that explicit. Otherwise that assumption is hidden inside the cBlock Server code. But as I said it is not something that I feel strongly about so feel free to implement it anyway you think is good. > Block Storage : add block storage service protocol > -------------------------------------------------- > > Key: HDFS-11127 > URL: https://issues.apache.org/jira/browse/HDFS-11127 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: hdfs > Reporter: Chen Liang > Assignee: Chen Liang > Attachments: HDFS-11127-HDFS-7240.001.patch > > > This JIRA adds block service protocol. This protocol is expose to client for volume operations including create, delete, info and list. Note that this protocol has nothing to do with actual data read/write on a particular volume. > (Also note that the term "cblock" is the current term used to refer to the block storage system.) -- 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