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

Not all Datastructures are updated when a block is deleted

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.0
    • Fix Version/s: 0.9.0
    • Component/s: None
    • Labels:
      None

      Description

      Currently when a block is deleted, DataNode just deletes the physical file and updates its map. We need to update more things. For e.g. numBlocks in FSDir is not decremented.. effect of this would be that we will create more subdirectories than necessary. It might not show up badly yet since numBlocks gets correct value when the dataNode restarts. I have to see what else needs to be updated.

        Attachments

        1. FSDataset.java.patch
          1 kB
          Vladimir Krokhmalyov
        2. FSDataset.java.patch
          2 kB
          Vladimir Krokhmalyov
        3. FSDataset.java.patch
          2 kB
          Vladimir Krokhmalyov

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rangadi Raghu Angadi
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: