diff --git a/hbase-http/src/main/java/org/apache/hadoop/hbase/http/HttpServer.java b/hbase-http/src/main/java/org/apache/hadoop/hbase/http/HttpServer.java index 23f59560c7ad..887380e920de 100644 --- a/hbase-http/src/main/java/org/apache/hadoop/hbase/http/HttpServer.java +++ b/hbase-http/src/main/java/org/apache/hadoop/hbase/http/HttpServer.java @@ -1120,7 +1120,10 @@ void openListeners() throws Exception { listener.open(); LOG.info("Jetty bound to port " + listener.getLocalPort()); break; - } catch (BindException ex) { + } catch (IOException ex) { + if(!(ex instanceof BindException) && !(ex.getCause() instanceof BindException)) { + throw ex; + } if (port == 0 || !findPort) { BindException be = new BindException("Port in use: " + listener.getHost() + ":" + listener.getPort());