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

DN should log a WARN, not an INFO when it detects a corruption during block transfer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 0.20.204.0
    • 0.23.1
    • datanode
    • None
    • Reviewed

    Description

      Currently, in DataNode.java, we have:

            LOG.info("Can't replicate block " + block
                + " because on-disk length " + onDiskLength 
                + " is shorter than NameNode recorded length " + block.getNumBytes());
      
      

      This log is better off as a WARN as it indicates (and also reports) a corruption.

      Attachments

        1. HDFS-2349.diff
          0.9 kB
          Harsh J

        Activity

          People

            qwertymaniac Harsh J
            qwertymaniac Harsh J
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: