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 0B06217CB7 for ; Mon, 16 Mar 2015 22:31:39 +0000 (UTC) Received: (qmail 61619 invoked by uid 500); 16 Mar 2015 22:31:38 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 61566 invoked by uid 500); 16 Mar 2015 22:31:38 -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 61554 invoked by uid 99); 16 Mar 2015 22:31:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Mar 2015 22:31:38 +0000 Date: Mon, 16 Mar 2015 22:31:38 +0000 (UTC) From: "Jing Zhao (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-7827) Erasure Coding: support striped blocks in non-protobuf fsimage 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-7827?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14364100#comment-14364100 ] Jing Zhao commented on HDFS-7827: --------------------------------- Currently we still have non-protobuf image for offline processing. Thus this change can still be helpful especially for storage usage analysis. Some comments on the current patch: # After updating {{writeINodeUnderConstruction}}, we also need to update {{readINodeUnderConstruction}} accordingly. # We also need a unit test to cover the under construction file with striped blocks. # Instead of the following code, we can simply use "out.writeBoolean(cons.isWithStripedBlocks())". Whether we keep using "EC_STORAGE_POLICY_ID" is still under construction. {code} + if (cons.isStriped()){ + out.writeByte(HdfsConstants.EC_STORAGE_POLICY_ID); + }else{ + out.writeByte(0); + } {code} # Please correct the coding format according to the project conventions. Besides, as [~wheat9] pointed out, we also need to update WebImageViewer for file size calculation. Please open a separate jira to do this. > Erasure Coding: support striped blocks in non-protobuf fsimage > -------------------------------------------------------------- > > Key: HDFS-7827 > URL: https://issues.apache.org/jira/browse/HDFS-7827 > Project: Hadoop HDFS > Issue Type: Sub-task > Reporter: Jing Zhao > Assignee: Hui Zheng > Attachments: HDFS-7827.000.patch, HDFS-7827.001.patch, HDFS-7827.002.patch > > > HDFS-7749 only adds code to persist striped blocks to protobuf-based fsimage. We should also add this support to the non-protobuf fsimage since it is still used for use cases like offline image processing. -- This message was sent by Atlassian JIRA (v6.3.4#6332)