Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-158

dfs should allocate a random blockid range to a file, then assign ids sequentially to blocks in the file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 0.1.0
    • None
    • None
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              shv Konstantin Shvachko
              cutting Doug Cutting
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: