Skip to content

Conversation

@dhirajh
Copy link
Contributor

@dhirajh dhirajh commented May 27, 2020

NOTICE

Please create an issue in ASF JIRA before opening a pull request,
and you need to set the title of the pull request which starts with
the corresponding JIRA issue number. (e.g. HADOOP-XXXXX. Fix a typo in YYY.)
For more details, please see https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute

@dhirajh dhirajh changed the title HADOOP-17052 Throw UnknownHostException in NetUtils.connect when host is not resolvable HADOOP-17052. Throw UnknownHostException in NetUtils.connect when host is not resolvable May 28, 2020
@hadoop-yetus
Copy link

🎊 +1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 22m 18s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ trunk Compile Tests _
+1 💚 mvninstall 19m 18s trunk passed
+1 💚 compile 17m 3s trunk passed
+1 💚 checkstyle 0m 52s trunk passed
+1 💚 mvnsite 1m 27s trunk passed
+1 💚 shadedclient 16m 41s branch has no errors when building and testing our client artifacts.
+1 💚 javadoc 1m 5s trunk passed
+0 🆗 spotbugs 2m 6s Used deprecated FindBugs config; considering switching to SpotBugs.
+1 💚 findbugs 2m 4s trunk passed
_ Patch Compile Tests _
+1 💚 mvninstall 0m 49s the patch passed
+1 💚 compile 16m 24s the patch passed
+1 💚 javac 16m 24s the patch passed
+1 💚 checkstyle 0m 49s the patch passed
+1 💚 mvnsite 1m 28s the patch passed
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 shadedclient 13m 45s patch has no errors when building and testing our client artifacts.
+1 💚 javadoc 1m 4s the patch passed
+1 💚 findbugs 2m 15s the patch passed
_ Other Tests _
+1 💚 unit 9m 8s hadoop-common in the patch passed.
+1 💚 asflicense 0m 55s The patch does not generate ASF License warnings.
128m 33s
Subsystem Report/Notes
Docker ClientAPI=1.40 ServerAPI=1.40 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-2036/1/artifact/out/Dockerfile
GITHUB PR #2036
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
uname Linux 79a5ee2fd48e 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality personality/hadoop.sh
git revision trunk / 4c5cd75
Default Java Private Build-1.8.0_252-8u252-b09-1~18.04-b09
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-2036/1/testReport/
Max. process+thread count 3259 (vs. ulimit of 5500)
modules C: hadoop-common-project/hadoop-common U: hadoop-common-project/hadoop-common
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-2036/1/console
versions git=2.17.1 maven=3.6.0 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Copy link
Member

@liuml07 liuml07 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

socket.close();
fail("Should not have connected");
} catch (UnknownHostException ce) {
System.err.println("Got exception: " + ce);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I know this is following existing test case, but since we now have a logger, we can use this:

LOG.info("Got expected exception", uhe);

Sytem.err in test code is not friendly to test output/log interpretation.

}
} catch (SocketTimeoutException ste) {
throw new ConnectTimeoutException(ste.getMessage());
} catch (UnresolvedAddressException ue) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: call it uae?

@dhirajh dhirajh changed the title HADOOP-17052. Throw UnknownHostException in NetUtils.connect when host is not resolvable HADOOP-17052. NetUtils.connect() throws unchecked exception (UnresolvedAddressException) causing clients to abort May 30, 2020
@hadoop-yetus
Copy link

🎊 +1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 30s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ trunk Compile Tests _
+1 💚 mvninstall 18m 52s trunk passed
+1 💚 compile 16m 53s trunk passed
+1 💚 checkstyle 0m 53s trunk passed
+1 💚 mvnsite 1m 29s trunk passed
+1 💚 shadedclient 16m 28s branch has no errors when building and testing our client artifacts.
+1 💚 javadoc 1m 2s trunk passed
+0 🆗 spotbugs 2m 6s Used deprecated FindBugs config; considering switching to SpotBugs.
+1 💚 findbugs 2m 5s trunk passed
_ Patch Compile Tests _
+1 💚 mvninstall 0m 49s the patch passed
+1 💚 compile 16m 19s the patch passed
+1 💚 javac 16m 19s the patch passed
+1 💚 checkstyle 0m 52s the patch passed
+1 💚 mvnsite 1m 27s the patch passed
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 shadedclient 14m 3s patch has no errors when building and testing our client artifacts.
+1 💚 javadoc 1m 4s the patch passed
+1 💚 findbugs 2m 15s the patch passed
_ Other Tests _
+1 💚 unit 9m 11s hadoop-common in the patch passed.
+1 💚 asflicense 0m 54s The patch does not generate ASF License warnings.
106m 1s
Subsystem Report/Notes
Docker ClientAPI=1.40 ServerAPI=1.40 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-2036/2/artifact/out/Dockerfile
GITHUB PR #2036
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
uname Linux 9bd0f2b62484 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality personality/hadoop.sh
git revision trunk / 19f26a0
Default Java Private Build-1.8.0_252-8u252-b09-1~18.04-b09
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-2036/2/testReport/
Max. process+thread count 2186 (vs. ulimit of 5500)
modules C: hadoop-common-project/hadoop-common U: hadoop-common-project/hadoop-common
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-2036/2/console
versions git=2.17.1 maven=3.6.0 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@liuml07 liuml07 merged commit 9fe4c37 into apache:trunk Jun 1, 2020
asfgit pushed a commit that referenced this pull request Jun 1, 2020
…edAddressException) causing clients to abort (#2036)

Contributed by Dhiraj Hegde.

Signed-off-by: Mingliang Liu <[email protected]>
asfgit pushed a commit that referenced this pull request Jun 1, 2020
…edAddressException) causing clients to abort (#2036)

Contributed by Dhiraj Hegde.

Signed-off-by: Mingliang Liu <[email protected]>
asfgit pushed a commit that referenced this pull request Jun 1, 2020
…edAddressException) causing clients to abort (#2036)

Contributed by Dhiraj Hegde.

Signed-off-by: Mingliang Liu <[email protected]>
asfgit pushed a commit that referenced this pull request Jun 1, 2020
…edAddressException) causing clients to abort (#2036)

Contributed by Dhiraj Hegde.

Signed-off-by: Mingliang Liu <[email protected]>
asfgit pushed a commit that referenced this pull request Jun 1, 2020
…edAddressException) causing clients to abort (#2036)

Contributed by Dhiraj Hegde.

Signed-off-by: Mingliang Liu <[email protected]>
jojochuang pushed a commit to jojochuang/hadoop that referenced this pull request May 23, 2023
…edAddressException) causing clients to abort (apache#2036)

Contributed by Dhiraj Hegde.

Signed-off-by: Mingliang Liu <[email protected]>
(cherry picked from commit 9fe4c37)
Change-Id: I67d527ad454567fc4b4476de64072d8bdd941d85
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants