----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/66289/#review200249 -----------------------------------------------------------
Thanks Armand, can you add greg to the review? include/mesos/master/master.proto Lines 335-336 (patched) <https://reviews.apache.org/r/66289/#comment280899> Exposing this makes me wonder what happens when this master loses leadership? It's not really a new question, but seems like the streaming API needs to do something when leadership is lost or if the master is not the leader in the first place? Do we support streaming against non-leaders? - Benjamin Mahler On March 27, 2018, 12:10 a.m., Armand Grillet wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/66289/ > ----------------------------------------------------------- > > (Updated March 27, 2018, 12:10 a.m.) > > > Review request for mesos, Benjamin Mahler and Till Toenshoff. > > > Repository: mesos > > > Description > ------- > > Added fields to GET_STATE necessary for streaming Web UI. > > > Diffs > ----- > > docs/operator-http-api.md 10dcac83fa70da5760a5c231665d7498cc168622 > include/mesos/master/master.proto aa63904a33290a3beda162bbc9f44b56ab04a1e7 > include/mesos/v1/master/master.proto > ddb28f96b2a3a439bb9a829995a9a3015f65ba43 > src/master/http.cpp 34c9023906eca94965acc994f20e888c1f47b962 > > > Diff: https://reviews.apache.org/r/66289/diff/1/ > > > Testing > ------- > > This is an updated version of > https://github.com/benh/mesos/commit/c3ce5edb35e10e682f7d791719ad077f78b1dc95. > > I have applied a `make check` + run a master locally and done a `curl -d > '{"type":"GET_STATE"}' -H "Content-Type: application/json" -X POST > http://localhost:5061/api/v1` to check the JSON returned: > ``` > { > "type": "GET_STATE", > "get_state": { > "get_tasks": {}, > "get_executors": {}, > "get_frameworks": {}, > "get_agents": {}, > "version": "1.6.0", > "build_time": { > "nanoseconds": 1522071419000000000 > }, > "build_user": "agrillet", > "start_time": { > "nanoseconds": 1522078049371355904 > }, > "leader": { > "id": "1ce9804a-efd6-422a-8669-ce82e4183173", > "ip": 3492307904, > "port": 5061, > "pid": "[email protected]:5061", > "hostname": "gru1.hw.ca1.mesosphere.com", > "version": "1.6.0", > "address": { > "hostname": "gru1.hw.ca1.mesosphere.com", > "ip": "192.99.40.208", > "port": 5061 > }, > "capabilities": [ > { > "type": "AGENT_UPDATE" > } > ] > }, > "elected_time": { > "nanoseconds": 1522078049390997760 > } > } > } > ``` > > > Thanks, > > Armand Grillet > >
