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 97105E7AE for ; Mon, 3 Dec 2012 04:05:59 +0000 (UTC) Received: (qmail 38918 invoked by uid 500); 3 Dec 2012 04:05:59 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 38756 invoked by uid 500); 3 Dec 2012 04:05:59 -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 38705 invoked by uid 99); 3 Dec 2012 04:05:58 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2012 04:05:58 +0000 Date: Mon, 3 Dec 2012 04:05:58 +0000 (UTC) From: "Tsz Wo (Nicholas), SZE (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1206264964.51844.1354507558205.JavaMail.jiratomcat@arcas> In-Reply-To: <1530590521.12196.1350938052285.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (HDFS-4103) Support O(1) snapshot creation 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-4103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13508452#comment-13508452 ] Tsz Wo (Nicholas), SZE commented on HDFS-4103: ---------------------------------------------- This issue is the core part of the Snapshot feature. The patch is getting close. If you want to review it, please do so. > Support O(1) snapshot creation > ------------------------------ > > Key: HDFS-4103 > URL: https://issues.apache.org/jira/browse/HDFS-4103 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: namenode > Affects Versions: Snapshot (HDFS-2802) > Reporter: Tsz Wo (Nicholas), SZE > Assignee: Tsz Wo (Nicholas), SZE > Attachments: h4103_20121129.patch, h4103_20121202b.patch, h4103_20121202.patch > > > In our first snapshot implementation, snapshot creation runs in O(N) and occupies O(N) memory space, where N = # files + # directories + # symlinks in the snapshot. The advantages of the implementation are that there is no additional cost for the modifications after snapshots are created, and it leads to a simple implementation. > In this JIRA, we optimize snapshot creation to O(1) although it introduces additional cost in the modifications after snapshots are created. Note that the INode is given as an assumption, otherwise, there is a non-constant cost to find the INode. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira