Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(336)

Issue 2298053002: Add more safety checks. (Closed)

Created:
4 years, 3 months ago by M-A Ruel
Modified:
4 years, 3 months ago
Reviewers:
Vadim Sh.
CC:
chromium-reviews, infra-reviews+luci-py_chromium.org
Target Ref:
refs/heads/master
Project:
luci-py
Visibility:
Public.

Description

Add more safety checks. A rootless index has no consistency guarantee. So ensure that the returned value is good. There has been at least one case on production where the index returned an object matching properties_hash != None but had failed. R=vadimsh@chromium.org BUG=chromium:642511 Committed: https://github.com/luci/luci-py/commit/62dac3d6729d3389437fb2710e3191eb8834f3db

Patch Set 1 #

Patch Set 2 : More check #

Total comments: 8

Patch Set 3 : Refactored searching code into function for readability #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -50 lines) Patch
M appengine/swarming/server/task_result.py View 1 1 chunk +3 lines, -2 lines 0 comments Download
M appengine/swarming/server/task_scheduler.py View 1 2 2 chunks +62 lines, -48 lines 1 comment Download

Messages

Total messages: 9 (3 generated)
M-A Ruel
That should help.
4 years, 3 months ago (2016-08-31 01:49:16 UTC) #1
Vadim Sh.
https://codereview.chromium.org/2298053002/diff/20001/appengine/swarming/server/task_scheduler.py File appengine/swarming/server/task_scheduler.py (right): https://codereview.chromium.org/2298053002/diff/20001/appengine/swarming/server/task_scheduler.py#newcode478 appengine/swarming/server/task_scheduler.py:478: for dupe_summary in cls.query(cls.properties_hash==h): nit: for i, dupe_summary in ...
4 years, 3 months ago (2016-08-31 19:46:06 UTC) #3
M-A Ruel
https://codereview.chromium.org/2298053002/diff/20001/appengine/swarming/server/task_scheduler.py File appengine/swarming/server/task_scheduler.py (right): https://codereview.chromium.org/2298053002/diff/20001/appengine/swarming/server/task_scheduler.py#newcode478 appengine/swarming/server/task_scheduler.py:478: for dupe_summary in cls.query(cls.properties_hash==h): On 2016/08/31 19:46:06, Vadim Sh. ...
4 years, 3 months ago (2016-08-31 20:26:30 UTC) #4
Vadim Sh.
lgtm
4 years, 3 months ago (2016-08-31 21:43:43 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2298053002/40001
4 years, 3 months ago (2016-08-31 21:53:24 UTC) #7
commit-bot: I haz the power
4 years, 3 months ago (2016-08-31 21:57:24 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://github.com/luci/luci-py/commit/62dac3d6729d3389437fb2710e3191eb8834f3db

Powered by Google App Engine
This is Rietveld 408576698