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

Correct the "hdfs fsck -list-corruptfileblocks" command output

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.1.1
    • 3.4.0
    • hdfs, tools
    • None
    • 3 node HA cluster

    • Reviewed

    Description

      Output message of ""hdfs fsck -list-corruptfileblocks" command is not correct

       

      Steps :Steps :       

      • Create a directory and put files  -
      • Corrupt the file blocks
      • check the corrupted file blocks with "hdfs fsck -list-corruptfileblocks" command    

      It will display corrupted file blocks with message as "The list of corrupt files under path '/path' are:"   at the beginning which is wrong.   

      And at the end of output also the wrong message will display as "The filesystem under path '/path' has <count> CORRUPT files"

       

      Actual output : "The list of corrupt files under path '/path' are:"

                                 "The filesystem under path '/path' has <count> CORRUPT files"

      Expected output : "The list of corrupted file blocks under path '/path' are:"

                                    "The filesystem under path '/path' has <count> CORRUPT file blocks"

       

      Attachments

        1. HDFS-15222.001.patch
          7 kB
          Ravuri Sushma sree
        2. HDFS-15222.002.patch
          7 kB
          Ravuri Sushma sree
        3. HDFS-15222.003.patch
          7 kB
          Ravuri Sushma sree
        4. output1.PNG
          37 kB
          Souryakanta Dwivedy
        5. output2.PNG
          29 kB
          Souryakanta Dwivedy

        Activity

          People

            Sushma_28 Ravuri Sushma sree
            SouryakantaDwivedy Souryakanta Dwivedy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: