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

Issue 986553002: A simple memcache lock for appengine. (Closed)

Created:
5 years, 9 months ago by iannucci
Modified:
5 years, 6 months ago
Reviewers:
Vadim Sh., M-A Ruel
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/infra/infra.git@meta
Target Ref:
refs/heads/master
Project:
infra
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 23

Patch Set 2 : total refactor #

Patch Set 3 : and fix a boog #

Total comments: 8

Patch Set 4 : fix reentrancy issue #

Patch Set 5 : Add memlock tests! #

Total comments: 17

Patch Set 6 : Rebase, use context #

Patch Set 7 : working (fast) tests :) #

Patch Set 8 : Rebase + refactor #

Patch Set 9 : remove unnecessary log, use blackhole logger #

Total comments: 6

Patch Set 10 : use new Field functionality in logging #

Patch Set 11 : add DEPS roll for luci-go to pick up logging.Fields #

Patch Set 12 : rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+290 lines, -12 lines) Patch
M DEPS View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 1 comment Download
A go/src/infra/gae/libs/memlock/memlock.go View 1 2 3 4 5 6 7 8 9 1 chunk +168 lines, -0 lines 0 comments Download
A go/src/infra/gae/libs/memlock/memlock_test.go View 1 2 3 4 5 6 7 8 1 chunk +100 lines, -0 lines 0 comments Download
M go/src/infra/gae/libs/wrapper/memory/memcache.go View 1 2 3 4 5 6 7 8 chunks +19 lines, -10 lines 0 comments Download
M go/src/infra/gae/libs/wrapper/memory/memcache_test.go View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 18 (3 generated)
iannucci
5 years, 9 months ago (2015-03-06 02:56:10 UTC) #1
Vadim Sh.
https://codereview.chromium.org/986553002/diff/1/go/src/infra/gae/libs/mlock/mlock.go File go/src/infra/gae/libs/mlock/mlock.go (right): https://codereview.chromium.org/986553002/diff/1/go/src/infra/gae/libs/mlock/mlock.go#newcode20 go/src/infra/gae/libs/mlock/mlock.go:20: ErrUnableToLock = fmt.Errorf("mlock: unable to lock") mlock is also ...
5 years, 9 months ago (2015-03-06 03:39:26 UTC) #2
Vadim Sh.
https://codereview.chromium.org/986553002/diff/1/go/src/infra/gae/libs/mlock/mlock.go File go/src/infra/gae/libs/mlock/mlock.go (right): https://codereview.chromium.org/986553002/diff/1/go/src/infra/gae/libs/mlock/mlock.go#newcode64 go/src/infra/gae/libs/mlock/mlock.go:64: func (m *MemcacheLock) Obtain() bool { On 2015/03/06 03:39:26, ...
5 years, 9 months ago (2015-03-06 03:46:30 UTC) #3
iannucci
PTAnL https://chromiumcodereview.appspot.com/986553002/diff/1/go/src/infra/gae/libs/mlock/mlock.go File go/src/infra/gae/libs/mlock/mlock.go (right): https://chromiumcodereview.appspot.com/986553002/diff/1/go/src/infra/gae/libs/mlock/mlock.go#newcode20 go/src/infra/gae/libs/mlock/mlock.go:20: ErrUnableToLock = fmt.Errorf("mlock: unable to lock") On 2015/03/06 ...
5 years, 9 months ago (2015-03-07 02:27:53 UTC) #4
Vadim Sh.
mostly lgtm https://codereview.chromium.org/986553002/diff/40001/go/src/infra/gae/libs/memlock/memlock.go File go/src/infra/gae/libs/memlock/memlock.go (right): https://codereview.chromium.org/986553002/diff/40001/go/src/infra/gae/libs/memlock/memlock.go#newcode76 go/src/infra/gae/libs/memlock/memlock.go:76: if !m.checkAnd(refresh) { actually, it makes the ...
5 years, 9 months ago (2015-03-07 02:55:50 UTC) #5
iannucci
+maruel for an example of how the proposed context library would be used to implement ...
5 years, 8 months ago (2015-03-29 21:22:36 UTC) #7
M-A Ruel
https://codereview.chromium.org/986553002/diff/80001/go/src/infra/gae/libs/memlock/doc.go File go/src/infra/gae/libs/memlock/doc.go (right): https://codereview.chromium.org/986553002/diff/80001/go/src/infra/gae/libs/memlock/doc.go#newcode1 go/src/infra/gae/libs/memlock/doc.go:1: package memlock I assume doc and copyrights are TODOs? ...
5 years, 8 months ago (2015-03-30 12:52:32 UTC) #8
iannucci
Please take another look (now that it's been like a month). I tried to address ...
5 years, 6 months ago (2015-05-31 09:31:27 UTC) #9
iannucci
https://chromiumcodereview.appspot.com/986553002/diff/160001/go/src/infra/gae/libs/wrapper/memory/memcache.go File go/src/infra/gae/libs/wrapper/memory/memcache.go (left): https://chromiumcodereview.appspot.com/986553002/diff/160001/go/src/infra/gae/libs/wrapper/memory/memcache.go#oldcode31 go/src/infra/gae/libs/wrapper/memory/memcache.go:31: // TODO(riannucci): bind+use namespace too this comment was wrong ...
5 years, 6 months ago (2015-05-31 09:34:04 UTC) #10
M-A Ruel
lgtm with optional change. https://chromiumcodereview.appspot.com/986553002/diff/160001/go/src/infra/gae/libs/memlock/memlock.go File go/src/infra/gae/libs/memlock/memlock.go (right): https://chromiumcodereview.appspot.com/986553002/diff/160001/go/src/infra/gae/libs/memlock/memlock.go#newcode37 go/src/infra/gae/libs/memlock/memlock.go:37: // var so we can ...
5 years, 6 months ago (2015-05-31 20:35:11 UTC) #11
iannucci
thanks :) does my explanation of the goofy function interface make sense? https://chromiumcodereview.appspot.com/986553002/diff/160001/go/src/infra/gae/libs/memlock/memlock.go File go/src/infra/gae/libs/memlock/memlock.go ...
5 years, 6 months ago (2015-05-31 21:07:57 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/986553002/220001
5 years, 6 months ago (2015-06-01 02:43:58 UTC) #15
commit-bot: I haz the power
Committed patchset #12 (id:220001) as https://chromium.googlesource.com/infra/infra/+/5e8bdbba1774434edaf506ad0dc719ee9c439ace
5 years, 6 months ago (2015-06-01 02:48:21 UTC) #16
M-A Ruel
https://codereview.chromium.org/986553002/diff/220001/DEPS File DEPS (right): https://codereview.chromium.org/986553002/diff/220001/DEPS#newcode18 DEPS:18: "@cb0fa575526ca58047408e4b0854b7ae50e151e5"), Oh next time please use: roll-dep infra/go/src/github.com/luci/luci-go in ...
5 years, 6 months ago (2015-06-01 13:57:13 UTC) #17
iannucci
5 years, 6 months ago (2015-06-01 16:17:16 UTC) #18
Message was sent while issue was closed.
On 2015/06/01 13:57:13, M-A Ruel wrote:
> https://codereview.chromium.org/986553002/diff/220001/DEPS
> File DEPS (right):
> 
> https://codereview.chromium.org/986553002/diff/220001/DEPS#newcode18
> DEPS:18: "@cb0fa575526ca58047408e4b0854b7ae50e151e5"),
> Oh next time please use:
>   roll-dep infra/go/src/github.com/luci/luci-go
> 
> in a fresh branch to roll a DEPS, it'll create a nicer CL. In particular it's
> not noted in the CL description that the dependency is updated. I should have
> noted this.

Ah, sorry, I'll do this next time.

Powered by Google App Engine
This is Rietveld 408576698