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

Generalize NetUtils#wrapException to handle other subclasses with String Constructor

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      NetUtils#wrapException returns an IOException if exception passed to it is not of type SocketException,EOFException,NoRouteToHostException,SocketTimeoutException,UnknownHostException,ConnectException,BindException.
      By default, it should always return instance (subclass of IOException) of same type unless a String constructor is not available.

        Attachments

        1. HADOOP-15178.003.patch
          12 kB
          Ajay Kumar
        2. HADOOP-15178.002.patch
          6 kB
          Ajay Kumar
        3. HADOOP-15178.001.patch
          10 kB
          Ajay Kumar

          Issue Links

            Activity

              People

              • Assignee:
                ajayydv Ajay Kumar
                Reporter:
                ajayydv Ajay Kumar
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: