mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zhitao Li <zhitaoli...@gmail.com>
Subject Re: Review Request 49722: Refactor all `get*` helper functions for master API to blocking version.
Date Wed, 06 Jul 2016 21:00:55 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/49722/
-----------------------------------------------------------

(Updated July 6, 2016, 9 p.m.)


Review request for mesos.


Changes
-------

Add helper `http::subscribe()` and rebase.


Repository: mesos


Description (updated)
-------

This makes sure `GetState()` collection is done in an
atomic fashion and avoid a race condition.

Things can be improved later:
- `Swap` and RVO to avoid large data.
- craft out test case for actual race condition.


Diffs (updated)
-----

  src/master/http.cpp 32b15d1f786c9ddbbf020b270f458b37ecea1bbd 
  src/master/master.hpp 0688ba33efcf670da6a6861870d1a13caad22b66 

Diff: https://reviews.apache.org/r/49722/diff/


Testing
-------

`make check` for existing tests.


Thanks,

Zhitao Li


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message