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

Issue 8416043: trivial: worker.ErrDead -> ErrTerminateAgent (Closed)

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

Description

trivial: worker.ErrDead -> ErrTerminateAgent Trivial change to rename all occurences of worker.ErrDead to worker.ErrTerminateAgent, so it's closer to the actual meaning of it (process returning 0, so upstart won't restart it). https://code.launchpad.net/~dimitern/juju-core/024-rename-worker-errdead-to-errterminateagent/+merge/157364 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 5

Patch Set 2 : trivial: worker.ErrDead -> ErrTerminateAgent #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -30 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/jujud/agent.go View 4 chunks +7 lines, -7 lines 0 comments Download
M cmd/jujud/agent_test.go View 1 chunk +1 line, -1 line 0 comments Download
M cmd/jujud/machine.go View 1 chunk +1 line, -1 line 0 comments Download
M worker/environ.go View 1 1 chunk +1 line, -1 line 0 comments Download
M worker/machiner/machiner.go View 3 chunks +3 lines, -3 lines 0 comments Download
M worker/machiner/machiner_test.go View 2 chunks +2 lines, -2 lines 0 comments Download
M worker/uniter/filter.go View 2 chunks +2 lines, -2 lines 0 comments Download
M worker/uniter/filter_test.go View 1 chunk +1 line, -1 line 0 comments Download
M worker/uniter/modes.go View 3 chunks +3 lines, -3 lines 0 comments Download
M worker/uniter/uniter_test.go View 1 1 chunk +9 lines, -9 lines 0 comments Download

Messages

Total messages: 5
dimitern
Please take a look.
11 years ago (2013-04-05 13:49:16 UTC) #1
fwereade
LGTM trivial with the below tweaks https://codereview.appspot.com/8416043/diff/1/worker/environ.go File worker/environ.go (right): https://codereview.appspot.com/8416043/diff/1/worker/environ.go#newcode12 worker/environ.go:12: var ErrTerminateAgent = ...
11 years ago (2013-04-05 14:00:36 UTC) #2
dimitern
*** Submitted: trivial: worker.ErrDead -> ErrTerminateAgent Trivial change to rename all occurences of worker.ErrDead to ...
11 years ago (2013-04-05 14:19:11 UTC) #3
rog
LGTM but one trivial, which you might consider for the next branch. We're really saying ...
11 years ago (2013-04-05 15:07:02 UTC) #4
dimitern
11 years ago (2013-04-05 15:31:10 UTC) #5
Message was sent while issue was closed.
On 2013/04/05 15:07:02, rog wrote:
> LGTM but one trivial, which you might consider for the next branch. We're
really
> saying that the agent should terminate, not that the entity is terminating
> (otherwise ErrDead would still be ok)
> 
> https://codereview.appspot.com/8416043/diff/1/worker/environ.go
> File worker/environ.go (right):
> 
> https://codereview.appspot.com/8416043/diff/1/worker/environ.go#newcode12
> worker/environ.go:12: var ErrTerminateAgent = errors.New("agent entity is
> terminating")
> "agent should terminate" ?

Cheers, I'll change it in the next CL.
Sign in to reply to this message.

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