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

Issue 2422393002: Fix sparse index handling, add index params. (Closed)

Created:
4 years, 2 months ago by dnj
Modified:
4 years, 2 months ago
Reviewers:
nodir
CC:
chromium-reviews, infra-reviews+luci-go_chromium.org, andrew.wang, todd, tandrii+luci-go_chromium.org, M-A Ruel
Target Ref:
refs/heads/master
Project:
luci-go
Visibility:
Public.

Description

Fix sparse index handling, add index params. Fix a bug in index archival where sparse indexes without a last log entry will act as if they have no logs. Augment the index protobuf with stream-wide parameters, namely the last prefix and stream indexes in the stream and the total number of entries in the stream. This will help supplement index information for sparse indexes. This is also backwards-compatible with indexes without these parameters. Finally, add a tool to help query and interact with archived data records. This was useful in diagnosing this bug, fixing this bug, and is expected to be useful for future purposes. BUG=chromium:654880 TEST=local,production - Tested against production data. Tool without patch exhibits production bug. Tool with patch successfully loads the stream. Committed: https://github.com/luci/luci-go/commit/fcfcaa45107e466fa6b0a07986fe87a5da5c1cf7

Patch Set 1 #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+620 lines, -51 lines) Patch
M logdog/api/logpb/log.proto View 1 chunk +22 lines, -0 lines 1 comment Download
M logdog/api/logpb/log.pb.go View 2 chunks +68 lines, -46 lines 0 comments Download
M logdog/common/archive/archive_test.go View 10 chunks +64 lines, -0 lines 1 comment Download
M logdog/common/archive/index.go View 1 chunk +5 lines, -0 lines 1 comment Download
A logdog/common/storage/archive/logdog_archive_test/main.go View 1 chunk +450 lines, -0 lines 3 comments Download
M logdog/common/storage/archive/storage.go View 2 chunks +11 lines, -5 lines 1 comment Download

Messages

Total messages: 13 (5 generated)
dnj
https://codereview.chromium.org/2422393002/diff/1/logdog/api/logpb/log.proto File logdog/api/logpb/log.proto (right): https://codereview.chromium.org/2422393002/diff/1/logdog/api/logpb/log.proto#newcode267 logdog/api/logpb/log.proto:267: /** New fields, backwards-compatible with old protobufs. All are ...
4 years, 2 months ago (2016-10-17 22:12:12 UTC) #1
dnj
PTAL
4 years, 2 months ago (2016-10-17 22:15:45 UTC) #3
nodir
lgtm https://codereview.chromium.org/2422393002/diff/1/logdog/common/storage/archive/logdog_archive_test/main.go File logdog/common/storage/archive/logdog_archive_test/main.go (right): https://codereview.chromium.org/2422393002/diff/1/logdog/common/storage/archive/logdog_archive_test/main.go#newcode1 logdog/common/storage/archive/logdog_archive_test/main.go:1: // Copyright 2016 The LUCI Authors. All rights ...
4 years, 2 months ago (2016-10-17 22:24:07 UTC) #4
dnj
https://codereview.chromium.org/2422393002/diff/1/logdog/common/storage/archive/logdog_archive_test/main.go File logdog/common/storage/archive/logdog_archive_test/main.go (right): https://codereview.chromium.org/2422393002/diff/1/logdog/common/storage/archive/logdog_archive_test/main.go#newcode1 logdog/common/storage/archive/logdog_archive_test/main.go:1: // Copyright 2016 The LUCI Authors. All rights reserved. ...
4 years, 2 months ago (2016-10-17 22:26:19 UTC) #5
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/2422393002/1
4 years, 2 months ago (2016-10-17 22:26:35 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: Luci-go Win Tester on luci.infra.try (JOB_FAILED, https://luci-milo.appspot.com/swarming/task/31edcabec673ca10)
4 years, 2 months ago (2016-10-18 00:29:40 UTC) #9
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/2422393002/1
4 years, 2 months ago (2016-10-18 02:03:53 UTC) #11
commit-bot: I haz the power
4 years, 2 months ago (2016-10-18 02:12:10 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://github.com/luci/luci-go/commit/fcfcaa45107e466fa6b0a07986fe87a5da5c1cf7

Powered by Google App Engine
This is Rietveld 408576698