Merge lp:~fwereade/juju-core/prepare-leave-scope into lp:~go-bot/juju-core/trunk
Status: | Merged |
---|---|
Approved by: | William Reade |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2755 |
Proposed branch: | lp:~fwereade/juju-core/prepare-leave-scope |
Merge into: | lp:~go-bot/juju-core/trunk |
Diff against target: |
421 lines (+249/-66) 3 files modified
state/relationunit.go (+29/-3) state/relationunit_test.go (+79/-0) state/watcher.go (+141/-63) |
To merge this branch: | bzr merge lp:~fwereade/juju-core/prepare-leave-scope |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+181065@code.launchpad.net |
Commit message
state: RelationUnit.
Added a mechanism whereby units can report imminent departure from a
relation, such that related ones see them disappear immediately and
reconfigure to ignore them *before* they actually disappear for good.
Description of the change
state: RelationUnit.
Added a mechanism whereby units can report imminent departure from a
relation, such that related ones see them disappear immediately and
reconfigure to ignore them *before* they actually disappear for good.
Exactly when the mechanism should be invoked remains open; it's clear
that it's a good idea for peers and providers, but I'm not sure it's
sensible for providers to see the departure of requirers until it actually
happens (because providers may have set up creds for the specific
requirers, and it'd be unhelpful to cut off their access before they're
ready).
Thoughts?
Reviewers: mp+181065_ code.launchpad. net,
Message:
Please take a look.
Description: PrepareLeaveSco pe
state: RelationUnit.
Added a mechanism whereby units can report imminent departure from a
relation, such that related ones see them disappear immediately and
reconfigure to ignore them *before* they actually disappear for good.
Exactly when the mechanism should be invoked remains open; it's clear
that it's a good idea for peers and providers, but I'm not sure it's
sensible for providers to see the departure of requirers until it
actually
happens (because providers may have set up creds for the specific
requirers, and it'd be unhelpful to cut off their access before they're
ready).
Thoughts?
https:/ /code.launchpad .net/~fwereade/ juju-core/ prepare- leave-scope/ +merge/ 181065
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/12841044/
Affected files: nit.go nit_test. go
A [revision details]
M state/relationu
M state/relationu
M state/watcher.go