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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.1.1
    • Fix Version/s: None
    • Component/s: hdfs, tools
    • Labels:
      None
    • Environment:

      3 node HA cluster

      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. output1.PNG
          37 kB
          Souryakanta Dwivedy
        4. output2.PNG
          29 kB
          Souryakanta Dwivedy

          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: