hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chun Zhang (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HDFS-504) HDFS updates the modification time of a file when the file is closed.
Date Fri, 31 Jul 2009 21:34:14 GMT

    [ https://issues.apache.org/jira/browse/HDFS-504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12737722#action_12737722
] 

Chun Zhang commented on HDFS-504:
---------------------------------

tested using "ant test" with and without patch;
tested using "ant run-commit-test" with and without patch.
"ant test" generated following identical errors with and without patch:

    [junit] Running org.apache.hadoop.hdfs.TestHDFSServerPorts
    [junit] Tests run: 4, Failures: 1, Errors: 0, Time elapsed: 3.845 sec
    [junit] Running org.apache.hadoop.hdfs.server.namenode.TestBackupNode
    [junit] Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 37.159 sec

"ant run-commit-test" generated following identical errors with and without patch:

    [junit] Running org.apache.hadoop.hdfs.TestHDFSServerPorts
    [junit] Tests run: 4, Failures: 1, Errors: 0, Time elapsed: 35.492 sec
    [junit] Running org.apache.hadoop.hdfs.server.namenode.TestBackupNode
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

Since #Failures/Errors is the same with and without patch, it should be OK to check in. 

However, to have even higher confidence, let wait for Hudson's result.


> 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.


Mime
View raw message