Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-15360

Log some more helpful information when catch RuntimeException or Error in IPC.Server

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • ipc
    • None

    Description

      IPC.Server#logException doesn't not print exception stack trace when catch RuntimeException or Error, for instance:

      2018-03-28 21:52:25,385 WARN org.apache.hadoop.ipc.Server: IPC Server handler 17 on 8020, call org.apache.hadoop.hdfs.protocol.ClientProtocol.getFileInfo from *.*.*.*:59326 Call#46 Retry#0 java.lang.ArrayIndexOutOfBoundsException: 0
      

      this log message is not friendly for debug. I think it is necessary to print more helpful message or full stack trace when the exception is RuntimeException or Error.

      Attachments

        Activity

          People

            Unassigned Unassigned
            hexiaoqiao Xiaoqiao He
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: