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

Issue 2645763002: datastorecache: Add Locker field, public settings. (Closed)

Created:
3 years, 11 months ago by dnj
Modified:
3 years, 11 months ago
Reviewers:
Vadim Sh., iannucci, estaab
CC:
chromium-reviews, infra-reviews+luci-go_chromium.org, maruel+w_chromium.org, tandrii+luci-go_chromium.org
Target Ref:
refs/heads/master
Project:
luci-go
Visibility:
Public.

Description

datastorecache: Add Locker field, public settings. Add the Locker field to datastorecache. Previously, the Locker was not configurable, and defaulted to memlock. However, locking is optional for fetching configuration data. This decouples datastorecache from the requirement that it has a working memcache, allowing it to be used by other datastore implementations such as cloud. This also changes the names of the gaeconfig datastore cache settings to be public so that they can be used by external packages that want to process the gaeconfig settings. BUG=chromium:682465 TEST=unit Review-Url: https://codereview.chromium.org/2645763002 Committed: https://github.com/luci/luci-go/commit/4590aea3339388a2946d2398c536d71789a0ca0a

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -50 lines) Patch
M appengine/datastorecache/cache.go View 9 chunks +18 lines, -17 lines 0 comments Download
M appengine/datastorecache/cache_test.go View 6 chunks +11 lines, -5 lines 0 comments Download
M appengine/datastorecache/handler.go View 1 chunk +7 lines, -0 lines 0 comments Download
A appengine/datastorecache/lock.go View 1 chunk +62 lines, -0 lines 0 comments Download
M appengine/datastorecache/model.go View 2 chunks +2 lines, -10 lines 0 comments Download
M appengine/datastorecache/util_test.go View 1 chunk +2 lines, -0 lines 0 comments Download
M luci_config/appengine/backend/datastore/ds.go View 5 chunks +12 lines, -1 line 0 comments Download
M luci_config/appengine/gaeconfig/default.go View 2 chunks +4 lines, -2 lines 0 comments Download
M luci_config/appengine/gaeconfig/default_test.go View 4 chunks +4 lines, -4 lines 0 comments Download
M luci_config/appengine/gaeconfig/settings.go View 6 chunks +19 lines, -11 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 8 (4 generated)
dnj
PTAL
3 years, 11 months ago (2017-01-19 01:06:38 UTC) #2
iannucci
lgtm
3 years, 11 months ago (2017-01-19 22:11:20 UTC) #3
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/2645763002/1
3 years, 11 months ago (2017-01-19 23:00:25 UTC) #5
commit-bot: I haz the power
3 years, 11 months ago (2017-01-20 00:03:11 UTC) #8
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://github.com/luci/luci-go/commit/4590aea3339388a2946d2398c536d71789a0ca0a

Powered by Google App Engine
This is Rietveld 408576698