You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Konstantin Shvachko (JIRA)" <ji...@apache.org> on 2008/01/31 02:59:34 UTC
[jira] Issue Comment Edited: (HADOOP-1188) processIOError() should
update fstime file
[ https://issues.apache.org/jira/browse/HADOOP-1188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12564182#action_12564182 ]
shv edited comment on HADOOP-1188 at 1/30/08 5:58 PM:
----------------------------------------------------------------------
I was thinking about a unit test, but I cannot figure our how to make it work especially on windows.
I need to make a directory unaccessible while the name-node is still running, but ntfs does not
let you modify anything about open files.
When I debugged this patch on Win I had to mount a "network drive", start name-node with one of
the directories on the mounted drive, then disconnect the drive and then perform a create or delete.
This works for debugging but I don't know how to make a unit test out of it.
Let me know if you have any ideas.
was (Author: shv):
I was thinking about a unit test, but I cannot figure our how to make it work especially on windows.
I need to make a directory unaccessible while the name-node is till running, but ntfs does not
let you modify anything about open files.
When I debugged this patch on Win I had to mount a "network drive", start namenode with one of
the directories on the mounted drive, then disconnecting the drive and then perform a create or delete.
This works for debugging but I don't know how to make a unit test out of it.
Let me know if you have any ideas.
> processIOError() should update fstime file
> ------------------------------------------
>
> Key: HADOOP-1188
> URL: https://issues.apache.org/jira/browse/HADOOP-1188
> Project: Hadoop Core
> Issue Type: Bug
> Components: dfs
> Affects Versions: 0.10.1, 0.11.2, 0.12.2
> Reporter: Konstantin Shvachko
> Assignee: Konstantin Shvachko
> Priority: Blocker
> Fix For: 0.16.1
>
> Attachments: hadoop-1188.patch
>
>
> Name-node can have multiple directories to store the name space image and edits.
> During startup the name-node selects the latest image and reads it in memory.
> fstime stores the time of the latest checkpoint.
> If one of the directories becomes inaccessible during normal operation the name-node
> excludes it from the list, and never writes anything into it until restarted.
> Now if the the name-node restarts after excluding one of the directories, and if that
> excluded directory contained the latest image, then all modifications of the name space
> recorded in edits files in other directories starting from the moment the directory was
> excluded will be lost.
> We should update fstime in all remaining good directories after the exclusion.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.