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 6CF0118F4F for ; Wed, 8 Jul 2015 05:06:05 +0000 (UTC) Received: (qmail 91705 invoked by uid 500); 8 Jul 2015 05:06:05 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 91650 invoked by uid 500); 8 Jul 2015 05:06:05 -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 91634 invoked by uid 99); 8 Jul 2015 05:06:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jul 2015 05:06:05 +0000 Date: Wed, 8 Jul 2015 05:06:05 +0000 (UTC) From: "Walter Su (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-8731) Erasure coding: For a small file missing and under replicated ec-block calculation is incorrect 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-8731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14617980#comment-14617980 ] Walter Su commented on HDFS-8731: --------------------------------- Is it duplicated with HDFS-8563? > Erasure coding: For a small file missing and under replicated ec-block calculation is incorrect > ------------------------------------------------------------------------------------------------ > > Key: HDFS-8731 > URL: https://issues.apache.org/jira/browse/HDFS-8731 > Project: Hadoop HDFS > Issue Type: Sub-task > Reporter: J.Andreina > Assignee: J.Andreina > > Write a small file (whose replica detail would be : one data replica and 3 parity replicas .) > Now : > totalReplicasPerBlock = 4 > targetFileReplication = 9 (calculated based on default RS-6-3 schema) > Hence the small file ec-blocks is calculated as always missing and underreplicated. which is wrong... > {code} > targetFileReplication = (short) (ecSchema.getNumDataUnits() + ecSchema.getNumParityUnits()); > {code} > {code} > // count missing replicas / under replicated blocks > if (totalReplicasPerBlock < targetFileReplication && totalReplicasPerBlock > 0) { > res.missingReplicas += (targetFileReplication - totalReplicasPerBlock); > res.numUnderReplicatedBlocks += 1; > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)