-
Notifications
You must be signed in to change notification settings - Fork 137
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
detect: prefer ip address over hostname #290
Conversation
@tsenart PTAL |
3821e13
to
381b201
Compare
/cc @jdef |
LGTM |
Probably worth adding a TODO in here to upgrade to MasterInfo.Address as soon as mesos-go makes that available via updated protos. That way you don't need to be in the business of big-vs-little endian decoding (which there were some plans to change at some point). |
It sounds like little vs. big endian encoding depends on the arch that the remote UPID process is running on: https://issues.apache.org/jira/browse/MESOS-1201 |
The "trivial" fix uses
|
@jdef PTAL (just added a TODO) |
@s-urbaniak: TODOs in code get easily lost. Please create an issue to track this instead. |
actually wondering if it makes sense to extract this packing logic into a On Tue, Sep 29, 2015 at 10:25 AM, Sergiusz Urbaniak <
|
lgtm. we're probably not going to make things any worse for people since On Tue, Sep 29, 2015 at 10:41 AM, Tomás Senart notifications@github.com
|
Even if we update the bindings, this new address field would only be set in more recent versions of Mesos, so older clusters would still be affected. |
true, but given the current deprecation cycle systems need to upgrade On Tue, Sep 29, 2015 at 12:23 PM, Tomás Senart notifications@github.com
|
like the byte order detection |
This commit adds support for MasterInfo.Address with fallback to the old Ip and Port for Mesos < 0.24.0
small nit, otherwise I really like the refactorings, LGTM |
detect: prefer ip address over hostname
Fixes #289, #276