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

Not all Datastructures are updated when a block is deleted

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.0
    • 0.9.0
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: