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

Issue 1844963002: Iterate archive query alongside task queue. (Closed)

Created:
4 years, 8 months ago by dnj
Modified:
4 years, 8 months ago
Reviewers:
estaab, nodir, iannucci
CC:
andrew.wang, chromium-reviews, infra-reviews+luci-go_chromium.org, M-A Ruel, tandrii+luci-go_chromium.org, todd
Base URL:
https://github.com/luci/luci-go@collector-gae-classic
Target Ref:
refs/heads/master
Project:
luci-go
Visibility:
Public.

Description

Iterate archive query alongside task queue. Currently, Coordinator performs one big query to get all archive tasks, then archives them sequentially. That query may fail if it's too big, though. This change makes it so the Coordinator performs an iterative query and enqueues tasks iteratively. BUG= Committed: https://github.com/luci/luci-go/commit/5467eab0823ac292b84322b7cf8277fb69c96be1

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use built-in datastore iteration. #

Patch Set 3 : Use new GAE filter for query batching. #

Total comments: 5

Patch Set 4 : Respond to code review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -123 lines) Patch
M appengine/logdog/coordinator/backend/archiveCron.go View 1 2 3 4 chunks +89 lines, -40 lines 0 comments Download
M appengine/logdog/coordinator/backend/backend.go View 2 chunks +13 lines, -0 lines 0 comments Download
M appengine/logdog/coordinator/backend/util.go View 2 chunks +0 lines, -81 lines 0 comments Download
M appengine/logdog/coordinator/backend/util_test.go View 1 2 2 chunks +1 line, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 29 (13 generated)
dnj
PTAL
4 years, 8 months ago (2016-03-30 17:04:22 UTC) #2
dnj
+nodir@, if you have time.
4 years, 8 months ago (2016-03-30 18:40:07 UTC) #4
iannucci
https://codereview.chromium.org/1844963002/diff/1/appengine/logdog/coordinator/backend/archiveCron.go File appengine/logdog/coordinator/backend/archiveCron.go (right): https://codereview.chromium.org/1844963002/diff/1/appengine/logdog/coordinator/backend/archiveCron.go#newcode152 appengine/logdog/coordinator/backend/archiveCron.go:152: err = di.Run(iterQuery, func(ls *coordinator.LogStream, cb ds.CursorCB) error { ...
4 years, 8 months ago (2016-03-30 19:04:28 UTC) #5
dnj
https://codereview.chromium.org/1844963002/diff/1/appengine/logdog/coordinator/backend/archiveCron.go File appengine/logdog/coordinator/backend/archiveCron.go (right): https://codereview.chromium.org/1844963002/diff/1/appengine/logdog/coordinator/backend/archiveCron.go#newcode152 appengine/logdog/coordinator/backend/archiveCron.go:152: err = di.Run(iterQuery, func(ls *coordinator.LogStream, cb ds.CursorCB) error { ...
4 years, 8 months ago (2016-03-30 19:10:46 UTC) #6
dnj
Updated to use new query batching filter, blocked on: https://chromiumcodereview.appspot.com/1843313004/
4 years, 8 months ago (2016-03-31 01:12:19 UTC) #7
iannucci
lgtm https://chromiumcodereview.appspot.com/1844963002/diff/40001/appengine/logdog/coordinator/backend/archiveCron.go File appengine/logdog/coordinator/backend/archiveCron.go (right): https://chromiumcodereview.appspot.com/1844963002/diff/40001/appengine/logdog/coordinator/backend/archiveCron.go#newcode37 appengine/logdog/coordinator/backend/archiveCron.go:37: return fmt.Sprintf("archive--%s", hashID) let's put a version number ...
4 years, 8 months ago (2016-03-31 22:52:31 UTC) #8
dnj
https://codereview.chromium.org/1844963002/diff/40001/appengine/logdog/coordinator/backend/archiveCron.go File appengine/logdog/coordinator/backend/archiveCron.go (right): https://codereview.chromium.org/1844963002/diff/40001/appengine/logdog/coordinator/backend/archiveCron.go#newcode37 appengine/logdog/coordinator/backend/archiveCron.go:37: return fmt.Sprintf("archive--%s", hashID) On 2016/03/31 22:52:31, iannucci wrote: > ...
4 years, 8 months ago (2016-04-01 00:21:52 UTC) #9
commit-bot: I haz the power
This CL has an open dependency (Issue 1846053002 Patch 1). Please resolve the dependency and ...
4 years, 8 months ago (2016-04-01 00:24:32 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1844963002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1844963002/60001
4 years, 8 months ago (2016-04-01 00:36:04 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: Luci-go Linux Trusty 64 Tester on master.tryserver.infra (JOB_FAILED, https://build.chromium.org/p/tryserver.infra/builders/Luci-go%20Linux%20Trusty%2064%20Tester/builds/908)
4 years, 8 months ago (2016-04-01 00:37:33 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1844963002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1844963002/60001
4 years, 8 months ago (2016-04-01 01:40:18 UTC) #19
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/921)
4 years, 8 months ago (2016-04-01 01:43:25 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1844963002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1844963002/60001
4 years, 8 months ago (2016-04-01 01:45:24 UTC) #23
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/922)
4 years, 8 months ago (2016-04-01 01:50:20 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1844963002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1844963002/60001
4 years, 8 months ago (2016-04-01 22:12:06 UTC) #27
commit-bot: I haz the power
4 years, 8 months ago (2016-04-01 22:15:47 UTC) #29
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://github.com/luci/luci-go/commit/5467eab0823ac292b84322b7cf8277fb69c96be1

Powered by Google App Engine
This is Rietveld 408576698