Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-2349

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

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 0.20.204.0
    • Fix Version/s: 0.23.1
    • Component/s: datanode
    • Labels:
      None
    • Hadoop Flags:
      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.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Harsh J
            Reporter:
            Harsh J
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development