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

Make it easier to debug UnknownHostExceptions from NetUtils.connect

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      Most UnknownHostExceptions thrown throughout hadoop include a useful message, either the hostname that was not found or some other descriptor of the problem. The UnknownHostException thrown from NetUtils.connect only includes the message of the underlying UnresolvedAddressException. If you take a look at the source for UnresolvedAddressException, it only has a no-args constructor (java11, but same is true in other versions). So it never has a message, meaning the UnknownHostException message is empty.

      We should include the endpoint.toString() in the UnknownHostException thrown by NetUtils.connect

      Attachments

        Activity

          People

            bbeaudreault Bryan Beaudreault
            bbeaudreault Bryan Beaudreault
            Votes:
            0 Vote for this issue
            Watchers:
            4 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 - 2.5h
                2.5h