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 2007/10/11 21:19:51 UTC

[jira] Resolved: (HADOOP-158) dfs should allocate a random blockid range to a file, then assign ids sequentially to blocks in the file

     [ https://issues.apache.org/jira/browse/HADOOP-158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Konstantin Shvachko resolved HADOOP-158.
----------------------------------------

    Resolution: Duplicate

> dfs should allocate a random blockid range to a file, then assign ids sequentially to blocks in the file
> --------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-158
>                 URL: https://issues.apache.org/jira/browse/HADOOP-158
>             Project: Hadoop
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.1.0
>            Reporter: Doug Cutting
>            Assignee: Konstantin Shvachko
>
> A random number generator is used to allocate block ids in dfs.  Sometimes a block id is allocated that is already used in the filesystem, which causes filesystem corruption.
> A short-term fix for this is to simply check when allocating block ids whether any file is already using the newly allocated id, and, if it is, generate another one.  There can still be collisions in some rare conditions, but these are harder to fix and will wait, since this simple fix will handle the vast majority of collisions.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.