Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-142

In 0.20, move blocks being written into a blocksBeingWritten directory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.20-append
    • 0.20-append, 0.20.205.0
    • None
    • None
    • hbase

    Description

      Before 0.18, when Datanode restarts, it deletes files under data-dir/tmp directory since these files are not valid anymore. But in 0.18 it moves these files to normal directory incorrectly making them valid blocks. One of the following would work :

      • remove the tmp files during upgrade, or
      • if the files under /tmp are in pre-18 format (i.e. no generation), delete them.

      Currently effect of this bug is that, these files end up failing block verification and eventually get deleted. But cause incorrect over-replication at the namenode before that.

      Also it looks like our policy regd treating files under tmp needs to be defined better. Right now there are probably one or two more bugs with it. Dhruba, please file them if you rememeber.

      Attachments

        1. HDFS-142.20-security.2.patch
          89 kB
          Jitendra Nath Pandey
        2. HDFS-142.20-security.1.patch
          88 kB
          Jitendra Nath Pandey
        3. HDFS-142_20-append2.patch
          84 kB
          Nicolas Spiegelberg
        4. recover-rbw-v2.txt
          27 kB
          Todd Lipcon
        5. dont-recover-rwr-when-rbw-available.txt
          24 kB
          Todd Lipcon
        6. appendFile-recheck-lease.txt
          6 kB
          Todd Lipcon
        7. recentInvalidateSets-assertion-fix.txt
          1 kB
          Todd Lipcon
        8. validateBlockMetaData-synchronized.txt
          0.9 kB
          Todd Lipcon
        9. hdfs-142-testleaserecovery-fix.txt
          5 kB
          Todd Lipcon
        10. hdfs-142-recovery-reassignment-and-bbw-cleanup.txt
          19 kB
          Todd Lipcon
        11. hdfs-142-testcases.txt
          8 kB
          Todd Lipcon
        12. hdfs-142-commitBlockSynchronization-unknown-datanode.txt
          2 kB
          Todd Lipcon
        13. HDFS-142-finalize-fix.txt
          7 kB
          sam rash
        14. HDFS-142-deaddn-fix.patch
          3 kB
          Nicolas Spiegelberg
        15. testfileappend4-deaddn.txt
          2 kB
          Todd Lipcon
        16. HDFS-142-multiple-blocks-datanode-exception.patch
          3 kB
          Karthik Ranganathan
        17. hdfs-142-minidfs-fix-from-409.txt
          2 kB
          Todd Lipcon
        18. HDFS-142_20.patch
          54 kB
          Nicolas Spiegelberg
        19. deleteTmp5_20.txt
          32 kB
          Dhruba Borthakur
        20. deleteTmp5_20.txt
          35 kB
          Dhruba Borthakur
        21. appendQuestions.txt
          8 kB
          Dhruba Borthakur
        22. handleTmp1.patch
          9 kB
          Dhruba Borthakur
        23. deleteTmp_0.18.patch
          2 kB
          Dhruba Borthakur
        24. deleteTmp2.patch
          13 kB
          Dhruba Borthakur
        25. deleteTmp.patch
          6 kB
          Dhruba Borthakur

        Issue Links

          Activity

            People

              dhruba Dhruba Borthakur
              rangadi Raghu Angadi
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: