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

Issue 82910044: Update LP 1301706

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years ago by dfc
Modified:
10 years ago
Reviewers:
mp+213971, fwereade
Visibility:
Public.

Description

Update LP 1301706 Whie investigating LP 1301706 I noticed that there were a few interface conversions which did not panic if the data coming back from mongo was corrupted. I think that this is wrong and the three conversions I've changed should panic if their do not match the expected type. I hope this will also give some clarity to the underlying issue which is panicing as if a nil was passed to the filter func. https://code.launchpad.net/~dave-cheney/juju-core/122-fix-lp-1301706/+merge/213971 (do not edit description out of merge proposal)

Patch Set 1 #

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

Messages

Total messages: 2
dfc
Please take a look.
10 years ago (2014-04-03 05:23:44 UTC) #1
fwereade
10 years ago (2014-04-03 08:39:16 UTC) #2
I'm ambivalent about this. It's nice to stop when we encounter corrupted data,
but it's not so nice add new ways to panic the API server. Guy says not lgtm on
those grounds -- i think I'd rather log a suitably terrifying error and keep
going despite the degraded functionality.

Counterargument?
Sign in to reply to this message.

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