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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.1
    • Fix Version/s: 3.4.0
    • Component/s: hdfs, tools
    • Labels:
      None
    • Environment:

      3 node HA cluster

    • Hadoop Flags:
      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. output1.PNG
          37 kB
          Souryakanta Dwivedy
        2. output2.PNG
          29 kB
          Souryakanta Dwivedy
        3. HDFS-15222.001.patch
          7 kB
          Ravuri Sushma sree
        4. HDFS-15222.002.patch
          7 kB
          Ravuri Sushma sree
        5. HDFS-15222.003.patch
          7 kB
          Ravuri Sushma sree

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: