-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/36900/
-----------------------------------------------------------
Review request for mesos, Anand Mazumdar, Isabel Jimenez, and Vinod Kone.
Bugs: MESOS-3135
https://issues.apache.org/jira/browse/MESOS-3135
Repository: mesos
Description
-------
As part of the support for non-libmesos linked client to
interact with the HTTP API, we also provide the Master information
stored in ZooKeeper in a way that is deserializable also for
clients that do not necessarily know how to decode a MasterInfo
protocol buffer.
This patch publishes the data in JSON format and has been tested,
summarily, with 2 masters running this patch alongside a 0.23 Master and
one each of 0.24 and 0.23 Agent nodes.
Diffs
-----
src/master/contender.cpp 2af70c7d1acf274db40cae1641cd305249a471ec
Diff: https://reviews.apache.org/r/36900/diff/
Testing
-------
make check
also ran: 3x Masters (2x 0.24 + 1x 0.23) / 2x Slaves (1x 0.23 + 1x 0.24)
the 0.24's were running this patch.
Also verified in ZK that the data was correct JSON:
```
{
"address":{
"hostname":"10.0.77.243",
"ip":"10.0.77.243",
"port":5050
},
"hostname":"10.0.77.243",
"id":"20150728-165830-4081909770-5050-64014",
"ip":4081909770,
"pid":"[email protected]:5050",
"port":5050,
"version":"0.24.0"
}
```
Thanks,
Marco Massenzio