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

Issue 6408045: ConfigNode only writes to ZK when it should

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

Description

ConfigNode only writes to ZK when it should Beforehand, when calling Write without changes, its behaviour was dependent on the (essentially random :/) yaml serialization. So, *usually*, it would do the right thing; but sometimes it'd rewrite the node for no good reason and cause entirely surprising failures at a distance. https://code.launchpad.net/~fwereade/juju-core/config-node-bug/+merge/115022 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : ConfigNode only writes to ZK when it should #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -0 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M state/confignode.go View 1 chunk +3 lines, -0 lines 0 comments Download
M state/confignode_test.go View 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 4
fwereade
Please take a look.
11 years, 9 months ago (2012-07-15 08:50:35 UTC) #1
rog
On 2012/07/15 08:50:35, fwereade wrote: > Please take a look. LGTM
11 years, 9 months ago (2012-07-16 08:44:41 UTC) #2
TheMue
LGTM
11 years, 9 months ago (2012-07-16 08:50:27 UTC) #3
fwereade
11 years, 9 months ago (2012-07-16 08:59:24 UTC) #4
*** Submitted:

ConfigNode only writes to ZK when it should

Beforehand, when calling Write without changes, its behaviour was
dependent on the (essentially random :/) yaml serialization. So,
*usually*, it would do the right thing; but sometimes it'd rewrite
the node for no good reason and cause entirely surprising failures
at a distance.

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

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