Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix JVM crashes when the hostname is not resolvable #525

Merged
merged 1 commit into from
Aug 18, 2015
Merged

Conversation

gkleiman
Copy link
Member

Due to a bug in Mesos < 0.24.0, Marathon users have observed JVM crashes
when the framework the host's hostname is nor resolvable
(https://issues.apache.org/jira/browse/MESOS-3145).

This change works around the problem by setting the hostname in the
Framework Information proto.

@gkleiman gkleiman added this to the 2.4.0 milestone Aug 18, 2015
@@ -37,8 +37,8 @@ trait SchedulerConfiguration extends ScallopConf {
descr = "The list of ZooKeeper servers for storing state",
default = Some("localhost:2181"))
lazy val hostname = opt[String]("hostname",
descr = "The advertised hostname stored in ZooKeeper so another standby " +
"host can redirect to this elected leader",
descr = "The advertised hostname, stored in ZooKeeper so another standby " +
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My proposal:

"The advertised hostname of this Chronos instance for network communication. This is used by other Chronos instances and the Mesos master."

Due to a bug in Mesos < 0.24.0, Marathon users have observed JVM crashes
when the framework the host's hostname is nor resolvable
(https://issues.apache.org/jira/browse/MESOS-3145).

This change works around the problem by setting the hostname in the
Framework Information proto.
kolloch pushed a commit that referenced this pull request Aug 18, 2015
Set the hostname in the framework information proto
@kolloch kolloch merged commit 5b644b1 into master Aug 18, 2015
@kolloch
Copy link

kolloch commented Aug 18, 2015

I feel blown away... 👍

@gkleiman gkleiman changed the title Set the hostname in the framework information proto Fix JVM crashes when the hostname is not resolvable Aug 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants