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

Issue 1910633006: LogDog: Support per-namespace expired archival. (Closed)

Created:
4 years, 8 months ago by dnj
Modified:
4 years, 7 months ago
Reviewers:
Ryan Tseng, iannucci, hinoka
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-coordinator-svcdec
Target Ref:
refs/heads/master
Project:
luci-go
Visibility:
Public.

Description

LogDog: Support per-namespace expired archival. Currently, expired archival only operates on the root namesapce. Change archival to use named delayed Tumble tasks, scheduling the cleanup archival on stream registration and clearing it on stream termination. BUG= Committed: https://github.com/luci/luci-go/commit/4be9524ee752a3d4740a26c0debc1807a2e68f7e

Patch Set 1 #

Patch Set 2 : Bugfixes, updates, works. #

Total comments: 5

Patch Set 3 : Switch to Tumble delayed mutations. #

Total comments: 10

Patch Set 4 : Updated comments. #

Patch Set 5 : Fix authdb tests after gae bump. #

Patch Set 6 : Update another test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1194 lines, -1359 lines) Patch
M appengine/cmd/cron/engine/engine_test.go View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M appengine/cmd/logdog_coordinator/backend/main.go View 1 2 1 chunk +9 lines, -25 lines 0 comments Download
M appengine/cmd/logdog_coordinator/vmuser/cron.yaml View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M appengine/cmd/logdog_coordinator/vmuser/index.yaml View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M appengine/cmd/logdog_coordinator/vmuser/queue.yaml View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M appengine/gaeauth/server/internal/authdb/authdb_test.go View 1 2 3 4 4 chunks +7 lines, -7 lines 0 comments Download
M appengine/logdog/coordinator/archival.go View 1 1 chunk +3 lines, -2 lines 0 comments Download
M appengine/logdog/coordinator/archivalPublisher.go View 1 1 chunk +3 lines, -2 lines 0 comments Download
M appengine/logdog/coordinator/backend/archiveCron.go View 1 2 1 chunk +0 lines, -156 lines 0 comments Download
M appengine/logdog/coordinator/backend/archiveCron_test.go View 1 2 1 chunk +0 lines, -197 lines 0 comments Download
M appengine/logdog/coordinator/backend/backend.go View 1 2 1 chunk +0 lines, -36 lines 0 comments Download
D appengine/logdog/coordinator/backend/doc.go View 1 2 1 chunk +0 lines, -45 lines 0 comments Download
D appengine/logdog/coordinator/backend/util.go View 1 2 1 chunk +0 lines, -47 lines 0 comments Download
D appengine/logdog/coordinator/backend/util_test.go View 1 2 1 chunk +0 lines, -25 lines 0 comments Download
M appengine/logdog/coordinator/config/config.go View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
M appengine/logdog/coordinator/context.go View 1 2 3 2 chunks +65 lines, -0 lines 0 comments Download
M appengine/logdog/coordinator/coordinatorTest/archival.go View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M appengine/logdog/coordinator/endpoints/services/registerStream.go View 1 2 5 chunks +40 lines, -2 lines 0 comments Download
M appengine/logdog/coordinator/endpoints/services/registerStream_test.go View 1 2 5 chunks +40 lines, -1 line 0 comments Download
M appengine/logdog/coordinator/endpoints/services/terminateStream.go View 1 2 3 chunks +14 lines, -2 lines 0 comments Download
M appengine/logdog/coordinator/endpoints/services/terminateStream_test.go View 1 2 7 chunks +37 lines, -7 lines 0 comments Download
A appengine/logdog/coordinator/mutations/createArchiveTask.go View 1 2 1 chunk +95 lines, -0 lines 0 comments Download
A appengine/logdog/coordinator/project.go View 1 1 chunk +31 lines, -0 lines 0 comments Download
M appengine/logdog/coordinator/service.go View 1 2 1 chunk +7 lines, -1 line 0 comments Download
M common/api/logdog_coordinator/services/v1/pb.discovery.go View 1 1 chunk +795 lines, -790 lines 0 comments Download
M common/api/logdog_coordinator/services/v1/tasks.proto View 1 1 chunk +3 lines, -0 lines 0 comments Download
M common/api/logdog_coordinator/services/v1/tasks.pb.go View 1 2 chunks +7 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 27 (14 generated)
dnj
PTAL
4 years, 8 months ago (2016-04-25 16:25:00 UTC) #2
Ryan Tseng
lgtm https://codereview.chromium.org/1910633006/diff/20001/appengine/logdog/coordinator/backend/archiveCron.go File appengine/logdog/coordinator/backend/archiveCron.go (right): https://codereview.chromium.org/1910633006/diff/20001/appengine/logdog/coordinator/backend/archiveCron.go#newcode79 appengine/logdog/coordinator/backend/archiveCron.go:79: log.WithError(err).Errorf(c, "Failed to add non-namesapced scan task.") namespaced ...
4 years, 7 months ago (2016-04-28 20:16:04 UTC) #4
dnj
iannucci@, after discussion I switched this to use delayed mutations. Can you PTAL?
4 years, 7 months ago (2016-04-29 02:53:35 UTC) #6
iannucci
lgtm https://codereview.chromium.org/1910633006/diff/40001/appengine/cmd/logdog_coordinator/backend/main.go File appengine/cmd/logdog_coordinator/backend/main.go (right): https://codereview.chromium.org/1910633006/diff/40001/appengine/cmd/logdog_coordinator/backend/main.go#newcode26 appengine/cmd/logdog_coordinator/backend/main.go:26: c = coordinator.UseProdServices(c) does this re-install stuff like ...
4 years, 7 months ago (2016-04-29 20:09:42 UTC) #7
dnj
Thanks for reviewing, updated! https://codereview.chromium.org/1910633006/diff/40001/appengine/cmd/logdog_coordinator/backend/main.go File appengine/cmd/logdog_coordinator/backend/main.go (right): https://codereview.chromium.org/1910633006/diff/40001/appengine/cmd/logdog_coordinator/backend/main.go#newcode26 appengine/cmd/logdog_coordinator/backend/main.go:26: c = coordinator.UseProdServices(c) On 2016/04/29 ...
4 years, 7 months ago (2016-04-29 23:04:21 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1910633006/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1910633006/60001
4 years, 7 months ago (2016-04-30 01:57:39 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: Luci-go Win Tester on master.tryserver.infra (JOB_FAILED, https://build.chromium.org/p/tryserver.infra/builders/Luci-go%20Win%20Tester/builds/1050)
4 years, 7 months ago (2016-04-30 02:00:09 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1910633006/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1910633006/60001
4 years, 7 months ago (2016-04-30 02:07:06 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: Luci-go Win Tester on master.tryserver.infra (JOB_FAILED, https://build.chromium.org/p/tryserver.infra/builders/Luci-go%20Win%20Tester/builds/1051)
4 years, 7 months ago (2016-04-30 02:10:57 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1910633006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1910633006/80001
4 years, 7 months ago (2016-04-30 02:34:13 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: Luci-go Win Tester on master.tryserver.infra (JOB_FAILED, https://build.chromium.org/p/tryserver.infra/builders/Luci-go%20Win%20Tester/builds/1052)
4 years, 7 months ago (2016-04-30 02:37:44 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1910633006/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1910633006/100001
4 years, 7 months ago (2016-04-30 02:41:13 UTC) #25
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 02:48:54 UTC) #27
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://github.com/luci/luci-go/commit/4be9524ee752a3d4740a26c0debc1807a2e68f7e

Powered by Google App Engine
This is Rietveld 408576698