Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2271)

Issue 7591044: state: stricter txn assertions on service destroy

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 1 month ago by fwereade
Modified:
11 years, 1 month ago
Reviewers:
dimitern, mp+153113, rog
Visibility:
Public.

Description

state: stricter txn assertions on service destroy As originally formulated, a changed unit count would not be detected if the relation count was unchanged; this engendered lp:1152717. We now check rather more strictly. Several service destruction tests were rearranged and renamed for clarity. https://code.launchpad.net/~fwereade/juju-core/stricter-service-destroy-ops/+merge/153113 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state: stricter txn assertions on service destroy #

Total comments: 1

Patch Set 3 : state: stricter txn assertions on service destroy #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -78 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M state/relation_test.go View 1 2 2 chunks +13 lines, -3 lines 0 comments Download
M state/service.go View 1 2 1 chunk +17 lines, -8 lines 0 comments Download
M state/service_test.go View 1 2 2 chunks +127 lines, -67 lines 0 comments Download

Messages

Total messages: 10
fwereade
Please take a look.
11 years, 1 month ago (2013-03-13 11:55:29 UTC) #1
dimitern
LGTM, but I'm not entirely sure of the implications of simplifying the asserts there. Can ...
11 years, 1 month ago (2013-03-13 11:59:40 UTC) #2
dimitern
Also, should this be linked to lp:1152717 and resolve it?
11 years, 1 month ago (2013-03-13 12:00:38 UTC) #3
fwereade
On 2013/03/13 11:59:40, dimitern wrote: > LGTM, but I'm not entirely sure of the implications ...
11 years, 1 month ago (2013-03-14 08:44:38 UTC) #4
fwereade
On 2013/03/13 12:00:38, dimitern wrote: > Also, should this be linked to lp:1152717 and resolve ...
11 years, 1 month ago (2013-03-14 08:44:51 UTC) #5
fwereade
Please take a look.
11 years, 1 month ago (2013-03-14 08:50:56 UTC) #6
dimitern
LGTM
11 years, 1 month ago (2013-03-14 09:03:09 UTC) #7
rog
LGTM except i'd really like to see some better testing around this. https://codereview.appspot.com/7591044/diff/7001/state/service.go File state/service.go ...
11 years, 1 month ago (2013-03-15 10:22:56 UTC) #8
fwereade
On 2013/03/15 10:22:56, rog wrote: > LGTM except i'd really like to see some better ...
11 years, 1 month ago (2013-03-15 10:47:56 UTC) #9
fwereade
11 years, 1 month ago (2013-03-15 14:52:29 UTC) #10
*** Submitted:

state: stricter txn assertions on service destroy

As originally formulated, a changed unit count would not be detected if the
relation count was unchanged; this engendered lp:1152717. We now check
rather more strictly.

Several service destruction tests were rearranged and renamed for clarity.

R=dimitern, rog
CC=
https://codereview.appspot.com/7591044
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b