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

Issue 1872903002: LogDog: Enable keys-only BigTable queries. (Closed)

Created:
4 years, 8 months ago by dnj
Modified:
4 years, 8 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-archive-v2
Target Ref:
refs/heads/master
Project:
luci-go
Visibility:
Public.

Description

LogDog: Enable keys-only BigTable queries. Currently, since individual log entry records are compacted together into a RecordIO blob in BigTable, keys-only queries cannot be executed, since the number of entries in the blob is required in order to traverse the key space. This modifies the BigTable schema to encode the number of records in a row into that row's key. This enables a keys-only query to know this value and, consequently, traverse the space without needing to load the full data blob. A "legacy mode" is supported with the intention of deprecating in a week or two once uncounted BigTable data has aged off. BUG= Committed: https://github.com/luci/luci-go/commit/d0f6fcf838b96874bef8f9c97f9fa095bcff4a1f

Patch Set 1 #

Patch Set 2 : Retain column filter. #

Patch Set 3 : Rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+352 lines, -145 lines) Patch
M server/logdog/storage/bigtable/bigtable.go View 1 2 4 chunks +28 lines, -19 lines 0 comments Download
M server/logdog/storage/bigtable/bigtable_test.go View 1 chunk +74 lines, -0 lines 0 comments Download
M server/logdog/storage/bigtable/rowKey.go View 1 2 10 chunks +54 lines, -24 lines 2 comments Download
M server/logdog/storage/bigtable/rowKey_test.go View 1 2 5 chunks +45 lines, -19 lines 0 comments Download
M server/logdog/storage/bigtable/storage.go View 1 2 5 chunks +96 lines, -18 lines 0 comments Download
M server/logdog/storage/bigtable/storage_test.go View 11 chunks +46 lines, -63 lines 0 comments Download
M server/logdog/storage/memory/memory.go View 1 chunk +5 lines, -2 lines 0 comments Download
M server/logdog/storage/storage.go View 1 chunk +4 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 13 (6 generated)
dnj
PTAL
4 years, 8 months ago (2016-04-08 19:52:46 UTC) #2
dnj
+hinoka@, PTAL
4 years, 8 months ago (2016-04-13 17:18:43 UTC) #5
Ryan Tseng
lgtm how much data would we lose if we didn't bother with a legacy mode? ...
4 years, 8 months ago (2016-04-13 21:38:06 UTC) #7
dnj
> how much data would we lose if we didn't bother with a legacy mode? ...
4 years, 8 months ago (2016-04-13 21:44:05 UTC) #8
dnj
https://codereview.chromium.org/1872903002/diff/60001/server/logdog/storage/bigtable/rowKey.go File server/logdog/storage/bigtable/rowKey.go (right): https://codereview.chromium.org/1872903002/diff/60001/server/logdog/storage/bigtable/rowKey.go#newcode30 server/logdog/storage/bigtable/rowKey.go:30: maxEncodedKeySize = encodedPrefixSize + (2 * (len("~") + hex.EncodedLen(cmpbin.MaxIntLen64))) ...
4 years, 8 months ago (2016-04-13 21:44:15 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1872903002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1872903002/60001
4 years, 8 months ago (2016-04-20 18:41:36 UTC) #11
commit-bot: I haz the power
4 years, 8 months ago (2016-04-20 18:45:31 UTC) #13
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://github.com/luci/luci-go/commit/d0f6fcf838b96874bef8f9c97f9fa095bcff4a1f

Powered by Google App Engine
This is Rietveld 408576698