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

Improve the exception's log output in DataXceiver

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • 2.7.1
    • None
    • None
    • None

    Description

      There are some not appropriate logLevel output in many palaces of DataXceiver. When some exceptions happened, the output logLevel often the info level not warn. Like these:

      try {
              blockSender = new BlockSender(block, blockOffset, length,
                  true, false, sendChecksum, datanode, clientTraceFmt,
                  cachingStrategy);
            } catch(IOException e) {
              String msg = "opReadBlock " + block + " received exception " + e; 
              LOG.info(msg);
              sendResponse(ERROR, msg);
              throw e;
            }
      

      And this case is not only one, it looks frequent in DataXceiver methods.

      Attachments

        1. HDFS-9727.001.patch
          7 kB
          Yiqun Lin
        2. HDFS-9727.002.patch
          7 kB
          Yiqun Lin

        Activity

          People

            linyiqun Yiqun Lin
            linyiqun Yiqun Lin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: