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

Issue 7610044: state/watcher: fix bug in UnwatchCollection

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

Description

state/watcher: fix bug in UnwatchCollection An outstanding request being sent to a collection watch would not be cancelled by UnwatchCollection. https://code.launchpad.net/~rogpeppe/juju-core/240-state-watcher-unwatchcollection-fix/+merge/152432 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state/watcher: fix bug in UnwatchCollection #

Total comments: 2

Patch Set 3 : state/watcher: fix bug in UnwatchCollection #

Patch Set 4 : state/watcher: fix bug in UnwatchCollection #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -2 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M state/watcher/watcher.go View 2 chunks +17 lines, -2 lines 0 comments Download
M state/watcher/watcher_test.go View 1 2 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 8
rog
Please take a look.
11 years, 2 months ago (2013-03-08 15:31:29 UTC) #1
dimitern
Good catch! LGTM. One question: could this possibly fix this bug as well? https://bugs.launchpad.net/juju-core/+bug/1135444 <state/watcher ...
11 years, 2 months ago (2013-03-08 15:40:26 UTC) #2
dave_cheney.net
LGTM. Nice catch. https://codereview.appspot.com/7610044/diff/2001/state/watcher/watcher.go File state/watcher/watcher.go (right): https://codereview.appspot.com/7610044/diff/2001/state/watcher/watcher.go#newcode78 state/watcher/watcher.go:78: // to a particular item. nit: ...
11 years, 2 months ago (2013-03-08 20:26:59 UTC) #3
jameinel
I like this, but I did test running the test without the fix, and it ...
11 years, 2 months ago (2013-03-08 20:56:17 UTC) #4
rog
Please take a look.
11 years, 2 months ago (2013-03-08 21:33:21 UTC) #5
rog
https://codereview.appspot.com/7610044/diff/2001/state/watcher/watcher.go File state/watcher/watcher.go (right): https://codereview.appspot.com/7610044/diff/2001/state/watcher/watcher.go#newcode78 state/watcher/watcher.go:78: // to a particular item. On 2013/03/08 20:26:59, dfc ...
11 years, 2 months ago (2013-03-08 21:51:31 UTC) #6
fwereade
LGTM. I kinda favour "matches" but it's up to you.
11 years, 2 months ago (2013-03-09 15:24:35 UTC) #7
rog
11 years, 1 month ago (2013-03-15 15:04:00 UTC) #8
*** Submitted:

state/watcher: fix bug in UnwatchCollection

An outstanding request being sent to a collection
watch would not be cancelled by UnwatchCollection.

R=dimitern, dfc, jameinel, fwereade
CC=
https://codereview.appspot.com/7610044
Sign in to reply to this message.

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