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 3D5FBD77E for ; Thu, 3 Jan 2013 13:32:16 +0000 (UTC) Received: (qmail 21838 invoked by uid 500); 3 Jan 2013 13:32:16 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 21437 invoked by uid 500); 3 Jan 2013 13:32:15 -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 21146 invoked by uid 99); 3 Jan 2013 13:32:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jan 2013 13:32:14 +0000 Date: Thu, 3 Jan 2013 13:32:14 +0000 (UTC) From: "Tsz Wo (Nicholas), SZE (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-4230) Listing all the current snapshottable directories 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-4230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13542927#comment-13542927 ] Tsz Wo (Nicholas), SZE commented on HDFS-4230: ---------------------------------------------- Thanks for working on this. Some comments on the patch: - It may not be a good idea to have SnapshottableDirectoryStatus extending HdfsFileStatus since most of the fields in HdfsFileStatus are not needed for SnapshottableDirectoryStatus. I think SnapshottableDirectoryStatus should be similar to ContentSummary, i.e. only put snapshotNumber and snapshotQuota in it. - In FSDirectory.unprotectedRenameTo(..), it is better to remove snapshottableDirs at the end, i.e. right before "return filesDeleted >0" since it support restoring src and dst. BTW, is it better to move the delete logic to HDFS-4244? > Listing all the current snapshottable directories > ------------------------------------------------- > > Key: HDFS-4230 > URL: https://issues.apache.org/jira/browse/HDFS-4230 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: datanode, namenode > Reporter: Jing Zhao > Assignee: Jing Zhao > Attachments: HDFS-4230.001.patch, HDFS-4230.001.patch, HDFS-4230.002.patch > > > Provide functionality to provide user with metadata about all the snapshottable directories. -- 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