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

Issue 6567044: state: drop RelationUnit.Pinger; consequences

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by fwereade
Modified:
11 years, 7 months ago
Reviewers:
mp+126111
Visibility:
Public.

Description

state: drop RelationUnit.Pinger; consequences This branch comprises: * Complete removal of RelationUnit.Pinger; * A pleasingly simple RelationUnitsWatcher et al; * A lot of s/int/int64/ to allow for mgo/txn revnos rather than ZK versions; * A large ugly addition to relation_test.go, ported directly from the original RUW tests with presence usage excised; * Minimal changes to Relationer, using EnterScope/LeaveScope only; * Minimal changes to tests in uniter to accommodate new Relationer; * Extra changes in uniter_test.go to get a couple of Uniter tests passing. https://code.launchpad.net/~fwereade/juju-core/relation-units-without-presence/+merge/126111 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 27

Patch Set 2 : state: drop RelationUnit.Pinger; consequences #

Total comments: 16

Patch Set 3 : state: drop RelationUnit.Pinger; consequences #

Patch Set 4 : state: drop RelationUnit.Pinger; consequences #

Unified diffs Side-by-side diffs Delta from patch set Stats (+753 lines, -145 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/jujuc/server/context.go View 1 chunk +1 line, -1 line 0 comments Download
M cmd/jujuc/server/context_test.go View 1 chunk +1 line, -1 line 0 comments Download
M state/relation.go View 1 2 3 chunks +5 lines, -9 lines 0 comments Download
M state/relation_test.go View 1 2 2 chunks +499 lines, -0 lines 0 comments Download
M state/unit.go View 1 5 chunks +6 lines, -6 lines 0 comments Download
M state/watcher.go View 1 2 3 2 chunks +163 lines, -21 lines 0 comments Download
M worker/uniter/hook/hook.go View 1 chunk +1 line, -1 line 0 comments Download
M worker/uniter/relation/hookqueue.go View 3 chunks +3 lines, -3 lines 0 comments Download
M worker/uniter/relation/hookqueue_test.go View 3 chunks +3 lines, -3 lines 0 comments Download
M worker/uniter/relation/relation.go View 4 chunks +5 lines, -5 lines 0 comments Download
M worker/uniter/relation/relation_test.go View 1 chunk +1 line, -1 line 0 comments Download
M worker/uniter/relationer.go View 1 1 chunk +4 lines, -17 lines 0 comments Download
M worker/uniter/relationer_test.go View 1 15 chunks +56 lines, -74 lines 0 comments Download
M worker/uniter/uniter_test.go View 1 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 7
fwereade
Please take a look.
11 years, 7 months ago (2012-09-24 22:05:17 UTC) #1
niemeyer
Awesome work, thanks! https://codereview.appspot.com/6567044/diff/1/state/relation_test.go File state/relation_test.go (right): https://codereview.appspot.com/6567044/diff/1/state/relation_test.go#newcode923 state/relation_test.go:923: func (s *OriginalRelationUnitSuite) TestContainerProReqRelationUnit(c *C) { ...
11 years, 7 months ago (2012-09-25 13:57:23 UTC) #2
fwereade
Please take a look. https://codereview.appspot.com/6567044/diff/1/state/relation_test.go File state/relation_test.go (right): https://codereview.appspot.com/6567044/diff/1/state/relation_test.go#newcode1099 state/relation_test.go:1099: c.Fatalf("channel closed: watcher error %#v", ...
11 years, 7 months ago (2012-09-25 16:22:49 UTC) #3
niemeyer
LGTM with the last round: https://codereview.appspot.com/6567044/diff/2002/state/relation.go File state/relation.go (right): https://codereview.appspot.com/6567044/diff/2002/state/relation.go#newcode236 state/relation.go:236: node, err := readConfigNode(ru.st, ...
11 years, 7 months ago (2012-09-25 19:29:38 UTC) #4
fwereade
Please take a look. https://codereview.appspot.com/6567044/diff/2002/state/relation.go File state/relation.go (right): https://codereview.appspot.com/6567044/diff/2002/state/relation.go#newcode236 state/relation.go:236: node, err := readConfigNode(ru.st, key) ...
11 years, 7 months ago (2012-09-25 21:43:48 UTC) #5
niemeyer
I'll be back home in a bit, but here are some quick comments in case ...
11 years, 7 months ago (2012-09-25 22:10:06 UTC) #6
fwereade
11 years, 7 months ago (2012-09-25 23:11:45 UTC) #7
*** Submitted:

state: drop RelationUnit.Pinger; consequences

This branch comprises:

* Complete removal of RelationUnit.Pinger;
* A pleasingly simple RelationUnitsWatcher et al;
* A lot of s/int/int64/ to allow for mgo/txn revnos rather than ZK versions;
* A large ugly addition to relation_test.go, ported directly from the
  original RUW tests with presence usage excised;
* Minimal changes to Relationer, using EnterScope/LeaveScope only;
* Minimal changes to tests in uniter to accommodate new Relationer;
* Extra changes in uniter_test.go to get a couple of Uniter tests passing.

R=niemeyer
CC=
https://codereview.appspot.com/6567044
Sign in to reply to this message.

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