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 E16A2DEB9 for ; Fri, 2 Nov 2012 23:04:12 +0000 (UTC) Received: (qmail 51670 invoked by uid 500); 2 Nov 2012 23:04:12 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 51603 invoked by uid 500); 2 Nov 2012 23:04:12 -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 51523 invoked by uid 99); 2 Nov 2012 23:04:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Nov 2012 23:04:12 +0000 Date: Fri, 2 Nov 2012 23:04:12 +0000 (UTC) From: "Aaron T. Myers (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1960865184.63377.1351897452554.JavaMail.jiratomcat@arcas> In-Reply-To: <1604119206.58692.1351814652414.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (HDFS-4141) Directory diff in snapshots 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-4141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13489819#comment-13489819 ] Aaron T. Myers commented on HDFS-4141: -------------------------------------- Patch looks pretty good to me, and it definitely helps to clear up what exactly a diff is from the latest design doc posted by Suresh. My only suggestion for the code is that both apply2Previous/apply2Current and accessPrevious/accessCurrent are pretty similar to each other, and you could probably reduce some code duplication there. The current code doesn't actually create a Diff at all, but I assume that will be added in another JIRA. I have just one question for you: how will multiple snapshots of the same directory be handled? My guess is that a single INodeDirectoryWithSnapshot will itself contain a list of Diffs, one per snapshot where files are changed in the directory. Is the plan for those diffs to be relative to each other? > Directory diff in snapshots > --------------------------- > > Key: HDFS-4141 > URL: https://issues.apache.org/jira/browse/HDFS-4141 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: name-node > Reporter: Tsz Wo (Nicholas), SZE > Assignee: Tsz Wo (Nicholas), SZE > Attachments: h4141_20121101.patch, h4141_20121102b.patch, h4141_20121102.patch > > > With snapshots, the same directory could have different states, e.g. different sets of children, in different snapshots. We implement a directory diff algorithm in this JIRA. -- 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