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

Issue 1971933002: LogDog: collector cache non-transient errors. (Closed)

Created:
4 years, 7 months ago by dnj
Modified:
4 years, 5 months ago
CC:
chromium-reviews, infra-reviews+luci-go_chromium.org, andrew.wang, todd, tandrii+luci-go_chromium.org, M-A Ruel
Base URL:
https://github.com/luci/luci-go@logdog-butler-register-coordinator-prefix-expiration
Target Ref:
refs/heads/master
Project:
luci-go
Visibility:
Public.

Description

LogDog: collector cache non-transient errors. Currently, the collector will cache responses from the Coordinator only on success. Now, non-transient collector errors will also be cached, meaning we won't hammer Collector with data that is known to be invalid. This is in anticipation of a higher registration failure rate after a prefix space expires. Currently, each log bundle for that stream will cause a new RPC to be issued. After this CL, the non-transient failure state will be cached. BUG=

Patch Set 1 #

Patch Set 2 : Updated patchset dependency #

Total comments: 2

Patch Set 3 : Updated patchset dependency #

Patch Set 4 : Updated patchset dependency #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -18 lines) Patch
M server/internal/logdog/collector/coordinator/cache.go View 5 chunks +20 lines, -16 lines 0 comments Download
M server/internal/logdog/collector/coordinator/cache_test.go View 2 chunks +19 lines, -2 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 6 (4 generated)
dnj (Google)
PTAL
4 years, 7 months ago (2016-05-11 23:11:26 UTC) #2
nodir
4 years, 7 months ago (2016-05-19 01:01:51 UTC) #5
lgtm

https://codereview.chromium.org/1971933002/diff/20001/server/internal/logdog/...
File server/internal/logdog/collector/coordinator/cache.go (right):

https://codereview.chromium.org/1971933002/diff/20001/server/internal/logdog/...
server/internal/logdog/collector/coordinator/cache.go:99: st, err :=
c.Coordinator.RegisterStream(ctx, st, desc)
just return it

https://codereview.chromium.org/1971933002/diff/20001/server/internal/logdog/...
server/internal/logdog/collector/coordinator/cache.go:115: // that the next
"update" will re-fetch it.
I am not clear where this purge happens?

Powered by Google App Engine
This is Rietveld 408576698