From hdfs-issues-return-466-apmail-hadoop-hdfs-issues-archive=hadoop.apache.org@hadoop.apache.org Fri Jul 24 19:42:33 2009 Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 91006 invoked from network); 24 Jul 2009 19:42:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Jul 2009 19:42:33 -0000 Received: (qmail 69731 invoked by uid 500); 24 Jul 2009 19:43:39 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 69689 invoked by uid 500); 24 Jul 2009 19:43: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 69679 invoked by uid 99); 24 Jul 2009 19:43:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jul 2009 19:43:38 +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; Fri, 24 Jul 2009 19:43:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C2F34234C046 for ; Fri, 24 Jul 2009 12:43:14 -0700 (PDT) Message-ID: <373365202.1248464594793.JavaMail.jira@brutus> Date: Fri, 24 Jul 2009 12:43:14 -0700 (PDT) From: "Chun Zhang (JIRA)" To: hdfs-issues@hadoop.apache.org Subject: [jira] Created: (HDFS-504) HDFS updates the modification time of a file when the file is created. 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 HDFS updates the modification time of a file when the file is created. ---------------------------------------------------------------------- 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 Priority: Minor Fix For: 0.20.1 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.