HADOOP-17119. Jetty upgrade to 9.4.x causes MR app fail with IOException. Contributed by Bilwa S T.

(cherry picked from commit 8a58a12626)
This commit is contained in:
Ayush Saxena 2020-07-20 22:13:48 +05:30 committed by Wei-Chiu Chuang
parent 87666e2438
commit d2ecaf217f
1 changed files with 5 additions and 1 deletions

View File

@ -1285,7 +1285,11 @@ public final class HttpServer2 implements FilterContainer {
try {
bindListener(listener);
return;
} catch (BindException ex) {
} catch (IOException ex) {
if (!(ex instanceof BindException)
&& !(ex.getCause() instanceof BindException)) {
throw ex;
}
// Ignore exception. Move to next port.
ioException = ex;
}