Repository: aurora Updated Branches: refs/heads/master 4a4b11c43 -> 190daed3e
Remove restriction that -hostname must resolve. Reviewed at https://reviews.apache.org/r/36305/ Project: http://git-wip-us.apache.org/repos/asf/aurora/repo Commit: http://git-wip-us.apache.org/repos/asf/aurora/commit/190daed3 Tree: http://git-wip-us.apache.org/repos/asf/aurora/tree/190daed3 Diff: http://git-wip-us.apache.org/repos/asf/aurora/diff/190daed3 Branch: refs/heads/master Commit: 190daed3ef54b30250925779343dfa91461878ac Parents: 4a4b11c Author: Brian Brazil <[email protected]> Authored: Thu Jul 9 19:07:20 2015 -0700 Committer: Bill Farner <[email protected]> Committed: Thu Jul 9 19:07:20 2015 -0700 ---------------------------------------------------------------------- .../org/apache/aurora/scheduler/http/JettyServerModule.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/aurora/blob/190daed3/src/main/java/org/apache/aurora/scheduler/http/JettyServerModule.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/aurora/scheduler/http/JettyServerModule.java b/src/main/java/org/apache/aurora/scheduler/http/JettyServerModule.java index b470129..06ee833 100644 --- a/src/main/java/org/apache/aurora/scheduler/http/JettyServerModule.java +++ b/src/main/java/org/apache/aurora/scheduler/http/JettyServerModule.java @@ -147,12 +147,12 @@ public class JettyServerModule extends AbstractModule { final Optional<String> hostnameOverride = Optional.fromNullable(HOSTNAME_OVERRIDE.get()); if (hostnameOverride.isPresent()) { - /* Force resolution of the DNS address passed in to ensure it's valid */ try { InetAddress.getByName(hostnameOverride.get()); } catch (UnknownHostException e) { - throw new IllegalStateException( - "Failed to resolve hostname supplied by -hostname", e); + /* Possible misconfiguration, so warn the user. */ + LOG.warning("Unable to resolve name specified in -hostname. " + + "Depending on your environment, this may be valid."); } } install(new PrivateModule() {
