Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 15893 invoked from network); 30 Jul 2009 00:47:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Jul 2009 00:47:38 -0000 Received: (qmail 82437 invoked by uid 500); 30 Jul 2009 00:47:39 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 82413 invoked by uid 500); 30 Jul 2009 00:47:39 -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 82403 invoked by uid 99); 30 Jul 2009 00:47:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jul 2009 00:47:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jul 2009 00:47:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D6D2F234C04C for ; Wed, 29 Jul 2009 17:47:14 -0700 (PDT) Message-ID: <1907125377.1248914834879.JavaMail.jira@brutus> Date: Wed, 29 Jul 2009 17:47:14 -0700 (PDT) From: "Chun Zhang (JIRA)" To: hdfs-issues@hadoop.apache.org Subject: [jira] Commented: (HDFS-504) HDFS updates the modification time of a file when the file is closed. In-Reply-To: <373365202.1248464594793.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HDFS-504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12736943#action_12736943 ] Chun Zhang commented on HDFS-504: --------------------------------- Still queued at http://hudson.zones.apache.org/hudson/job/Hdfs-Patch-Admin/lastSuccessfulBuild/artifact/HDFS_PatchQueue.html. > HDFS updates the modification time of a file when the file is closed. > --------------------------------------------------------------------- > > Key: HDFS-504 > URL: https://issues.apache.org/jira/browse/HDFS-504 > Project: Hadoop HDFS > Issue Type: Improvement > Components: name-node > Affects Versions: 0.20.1 > Reporter: Chun Zhang > Assignee: Chun Zhang > Priority: Minor > Fix For: 0.20.1 > > Attachments: pathfile.txt, pathfile.txt, pathfile.txt, pathfile.txt > > Original Estimate: 2h > Remaining Estimate: 2h > > Current HDFS updates the modification time of a file when the file is created. We would like to update the modification time of the file when the file is closed after being written to. This helps HDFS Raid to detect file changes more aggressively. > Solution includes: > 1. Made changes to closeFile@/org/apache/hadoop/hdfs/server/namenode/FSDirectory.java; > 2. Added unit test to testTimesAtClose@/org/apache/hadoop/hdfs/TestSetTimes.java. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.