HBASE-8613 Improve logging when BindException is received at startup time

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1486289 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2013-05-25 04:41:28 +00:00
parent 4ff4038b79
commit e849b9bfb9
1 changed files with 1 additions and 0 deletions

View File

@ -1595,6 +1595,7 @@ public class HRegionServer implements ClientProtos.ClientService.BlockingInterfa
} catch (BindException e) {
if (!auto) {
// auto bind disabled throw BindException
LOG.error("Failed binding http info server to port: " + port);
throw e;
}
// auto bind enabled, try to use another port