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

        Arun C Murthy made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Harsh J made changes -
        Fix Version/s 0.23.1 [ 12318885 ]
        Fix Version/s 0.24.0 [ 12317653 ]
        Target Version/s 0.23.1 [ 12318885 ]
        Eli Collins made changes -
        Target Version/s 0.23.1 [ 12318885 ]
        Harsh J made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags Reviewed [ 10343 ]
        Resolution Fixed [ 1 ]
        Harsh J made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Harsh J made changes -
        Field Original Value New Value
        Attachment HDFS-2349.diff [ 12495124 ]
        Harsh J created 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