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

Solve BlockSender#sendPacket() does not record SocketTimeout exception

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4.0, 3.3.2
    • Component/s: None

      Description

      In BlockSender#sendPacket(), if a SocketTimeout exception occurs, no information is recorded here.
      try

      { ...... }

      catch (IOException e) {
      if (e instanceof SocketTimeoutException)

      { /* * writing to client timed out. This happens if the client reads * part of a block and then decides not to read the rest (but leaves * the socket open). * * Reporting of this case is done in DataXceiver#run */ }

      }
      No records are generated here, which is not conducive to troubleshooting.
      We should add a line of warning type log.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jianghuazhu JiangHua Zhu
                Reporter:
                jianghuazhu JiangHua Zhu
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 20m
                  2h 20m