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

Issue 1844183003: Don't filter "Stop" error in raw interface. (Closed)

Created:
4 years, 8 months ago by dnj
Modified:
4 years, 8 months ago
Reviewers:
iannucci
CC:
chromium-reviews, infra-reviews+luci-gae_chromium.org
Base URL:
https://chromium.googlesource.com/external/github.com/luci/gae@master
Target Ref:
refs/heads/master
Project:
luci-gae
Visibility:
Public.

Description

Don't filter "Stop" error in raw interface. The Stop error is a high-level error used by the datastore service to indicate that an iterative operation should stop rather. It should appear to the user as a "nil" error. However, currently the datastore raw implementations are filtering Stop and converting it to "nil". This prevents other filters from identifying Stop events from their lower level callbacks. Update raw datastore methods to not filter Stop, and update their tests to accept Stop as a valid successful result. BUG= Committed: https://github.com/luci/gae/commit/2b07306ebd082f630241b64a39c20cedf29e6c20

Patch Set 1 #

Patch Set 2 : Count filter doesn't count Stop as error. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -54 lines) Patch
M filter/count/count_test.go View 1 1 chunk +9 lines, -0 lines 0 comments Download
M filter/count/rds.go View 1 3 chunks +5 lines, -4 lines 0 comments Download
M impl/memory/datastore_data.go View 3 chunks +0 lines, -9 lines 0 comments Download
M impl/memory/datastore_query_execution_test.go View 5 chunks +29 lines, -11 lines 0 comments Download
M impl/memory/gkvlite_iter.go View 2 chunks +0 lines, -4 lines 0 comments Download
M impl/memory/gkvlite_iter_test.go View 5 chunks +5 lines, -5 lines 0 comments Download
M impl/prod/raw_datastore.go View 1 chunk +0 lines, -3 lines 0 comments Download
M service/datastore/datastore.go View 7 chunks +26 lines, -18 lines 0 comments Download
M service/datastore/raw_interface.go View 2 chunks +9 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 8 (4 generated)
dnj
PTAL
4 years, 8 months ago (2016-03-30 23:44:55 UTC) #2
iannucci
lgtm
4 years, 8 months ago (2016-03-30 23:46:12 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1844183003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1844183003/20001
4 years, 8 months ago (2016-03-31 00:22:01 UTC) #6
commit-bot: I haz the power
4 years, 8 months ago (2016-03-31 00:26:38 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://github.com/luci/gae/commit/2b07306ebd082f630241b64a39c20cedf29e6c20

Powered by Google App Engine
This is Rietveld 408576698