We have concurrent access to hosts' labels and attributes in the system.
We should make this access safe via CachingHostInfoStore.
The idea is:
- Each HostInfo contains a private copy of the "initial state" when it was returned from CachingHostInfoStore.
- Concrete implementations of CachingHostInfoStore are expected to correctly use the "diff" from the commited HostInfo object to update the backing store.
(I don't see a way to enforce this directly from CachingHostInfoStore without exposing the details of HostInfo between CachingHostInfoStore and its concrete implementations)
Comment 1 by ayatane@chromium.org
, Jan 12 2017