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

Issue 2200833004: Fixing RedisRTC implementation and test (Closed)

Created:
4 years, 4 months ago by stephana
Modified:
4 years, 4 months ago
Reviewers:
dogben
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/buildbot@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fixing RedisRTC implementation and test This simplifies the ReadThroughCache implementation, improves the test to test a more realistic use case and fixes to test to pass in the CQ. BUG=skia: Committed: https://skia.googlesource.com/buildbot/+/ecc4714f42638ef3bb944ace9df89125ff3c569e

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : Refactored readthrough cache to be simpler #

Patch Set 4 : Removed dead code #

Total comments: 14

Patch Set 5 : Incorporated Feedback #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -90 lines) Patch
M go/redisutil/rtc.go View 1 2 3 4 12 chunks +72 lines, -64 lines 1 comment Download
M go/redisutil/rtc_test.go View 1 2 3 4 4 chunks +42 lines, -26 lines 2 comments Download

Messages

Total messages: 27 (21 generated)
stephana
4 years, 4 months ago (2016-08-08 20:23:05 UTC) #13
dogben
lgtm https://codereview.chromium.org/2200833004/diff/60001/go/redisutil/rtc.go File go/redisutil/rtc.go (right): https://codereview.chromium.org/2200833004/diff/60001/go/redisutil/rtc.go#newcode103 go/redisutil/rtc.go:103: // queueSubChannel: fmt.Sprintf("__keyspace@%d__:%s", redisPool.db, queueKey), nit: delete https://codereview.chromium.org/2200833004/diff/60001/go/redisutil/rtc.go#newcode296 ...
4 years, 4 months ago (2016-08-08 21:18:24 UTC) #16
stephana
https://codereview.chromium.org/2200833004/diff/60001/go/redisutil/rtc.go File go/redisutil/rtc.go (right): https://codereview.chromium.org/2200833004/diff/60001/go/redisutil/rtc.go#newcode103 go/redisutil/rtc.go:103: // queueSubChannel: fmt.Sprintf("__keyspace@%d__:%s", redisPool.db, queueKey), On 2016/08/08 21:18:24, Ben ...
4 years, 4 months ago (2016-08-08 21:46:56 UTC) #19
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/2200833004/80001
4 years, 4 months ago (2016-08-09 01:06:50 UTC) #24
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://skia.googlesource.com/buildbot/+/ecc4714f42638ef3bb944ace9df89125ff3c569e
4 years, 4 months ago (2016-08-09 01:07:14 UTC) #26
dogben
4 years, 4 months ago (2016-08-09 13:50:49 UTC) #27
Message was sent while issue was closed.
lgtm

https://codereview.chromium.org/2200833004/diff/80001/go/redisutil/rtc.go
File go/redisutil/rtc.go (right):

https://codereview.chromium.org/2200833004/diff/80001/go/redisutil/rtc.go#new...
go/redisutil/rtc.go:298: // cause the caller to poll the queue.
Why checkForWork() at all? Why not just poll the queue continuously?

https://codereview.chromium.org/2200833004/diff/80001/go/redisutil/rtc_test.go
File go/redisutil/rtc_test.go (right):

https://codereview.chromium.org/2200833004/diff/80001/go/redisutil/rtc_test.g...
go/redisutil/rtc_test.go:59: // Wait for 2 seconds to make sure wait for work
function times out
"2 seconds" vs. "1 * time.Second" below

https://codereview.chromium.org/2200833004/diff/80001/go/redisutil/rtc_test.g...
go/redisutil/rtc_test.go:60: // at least once and queries the queueu directly.
typo: "queueu"

Powered by Google App Engine
This is Rietveld 408576698