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 780341762C for ; Tue, 5 May 2015 17:45:00 +0000 (UTC) Received: (qmail 52992 invoked by uid 500); 5 May 2015 17:45:00 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 52938 invoked by uid 500); 5 May 2015 17:45:00 -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 52903 invoked by uid 99); 5 May 2015 17:45:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 May 2015 17:45:00 +0000 Date: Tue, 5 May 2015 17:45:00 +0000 (UTC) From: "Andrew Wang (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-8255) Rename getBlockReplication to getPreferredBlockStorageNum 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-8255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14528882#comment-14528882 ] Andrew Wang commented on HDFS-8255: ----------------------------------- Seems like use of this field is overloaded in EC to mean something else. Not sure how I feel about that, since it seems like it precludes EC+replication (something we should be able to support). I like renaming to "getPreferredReplication" for your reason #1, maybe for #2 we introduce a new striping/EC-specific field. > Rename getBlockReplication to getPreferredBlockStorageNum > --------------------------------------------------------- > > Key: HDFS-8255 > URL: https://issues.apache.org/jira/browse/HDFS-8255 > Project: Hadoop HDFS > Issue Type: Improvement > Reporter: Zhe Zhang > Assignee: Zhe Zhang > Attachments: HDFS-8255.000.patch > > > We should rename {{BlockCollection#getBlockReplication}} to {{getPreferredBlockStorageNum}} for 2 reasons: > # Currently, this method actually returns the _preferred_ block replication factor instead of the _actual_ number of replicas. The current name is a little ambiguous. {{getPreferredBlockStorageNum}} is also consistent with {{getPreferredBlockSize}} > # With the erasure coding feature, the name doesn't apply to striped blocks. -- This message was sent by Atlassian JIRA (v6.3.4#6332)