HADOOP-6220
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1177051 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
05aeb2d9fd
commit
c5179b16ec
@ -39,6 +39,10 @@ Trunk (unreleased changes)
|
|||||||
|
|
||||||
HADOOP-7669 Fix newly introduced release audit warning.
|
HADOOP-7669 Fix newly introduced release audit warning.
|
||||||
(Uma Maheswara Rao G via stevel)
|
(Uma Maheswara Rao G via stevel)
|
||||||
|
|
||||||
|
HADOOP-6220. HttpServer wraps InterruptedExceptions by IOExceptions if interrupted
|
||||||
|
in startup (stevel)
|
||||||
|
|
||||||
|
|
||||||
Release 0.23.0 - Unreleased
|
Release 0.23.0 - Unreleased
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
import java.io.FileNotFoundException;
|
import java.io.FileNotFoundException;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.PrintWriter;
|
import java.io.PrintWriter;
|
||||||
|
import java.io.InterruptedIOException;
|
||||||
import java.net.BindException;
|
import java.net.BindException;
|
||||||
import java.net.InetSocketAddress;
|
import java.net.InetSocketAddress;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
@ -683,6 +684,9 @@ public void start() throws IOException {
|
|||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw e;
|
throw e;
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
throw (IOException) new InterruptedIOException(
|
||||||
|
"Interrupted while starting HTTP server").initCause(e);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new IOException("Problem starting http server", e);
|
throw new IOException("Problem starting http server", e);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user