Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
state: fix address update assertions #2524
Conversation
|
$$merge$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
added a commit
that referenced
this pull request
Jun 9, 2015
jujubot
merged commit 1c112e9
into
juju:1.22
Jun 9, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
axw commentedJun 9, 2015
Back-port of #2513
Change machine address updates to not care about concurrent updates.
Block-device and address updates are currently asserting
that there are no concurrent changes. There are several
problems with this:
is equal to the in-memory struct representation. This
means that removing or reordering fields in the struct
will cause assertion failures
mgo that can cause reordering of map elements in
assertions
between observing the current value and updating, we still
loop and then update. The net effect is that we always update,
except in the case of "state changing too fast".
Fixes https://bugs.launchpad.net/bugs/1461871
(Review request: http://reviews.vapour.ws/r/1890/)