|
|
LogDog: Update to archival V2.
Remove archive task polling. The standard path to archival will be archive
tasks created when the stream is registered as terminated. These tasks
will stick around until the archival is successful or has been declared
a failure.
Archival completeness is now a property of its task: if the task is
older than a threshold, the archive's completeness requirement will be
dropped.
Archival also offers an error path which will archive an empty stream if
there is a fatal (non-transient) archival error. This primarily targets
data errors.
An emergency poller will still run periodically to catch streams that
have not been terminated, either because of data loss or because the
Butler never sent a terminal index (i.e., it crashed).
We also switch from pull queues (alpha REST API) to Pub/Sub for archival
tasking. A unique key is sent with each Pub/Sub task to recreate
transactional task queue operations in Pub/Sub - only the Pub/Sub message
that includes the key transactionally encoded into Datastore will be
used for archival.
Coordinator:
- Add schema field to datastore, add migration path from no-schema.
- Move log stream validation to Load/Save, remove special handlers.
- Remove archival polling. Set up emergency archive poller instead.
- Archive tasking will happen once, either on termination or on expired
stream polling, and will be recorded in the stream's state.
- Clean up some tests to accommodate the changes.
Archivist:
- ONLY clear archive task when acknowledged by the Coordinator, since it
will not be recreated.
- Archival tasks will now note the age when incomplete archival is
permitted.
Collector:
- Add a "don't waste your time" quick path to discard a log bundle.
Committed: https://github.com/luci/luci-go/commit/c3ca643d9c02f0a7684e73e9aeae77206ca88533
Total comments: 16
Total comments: 23
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+4857 lines, -3578 lines) |
Patch |
 |
M |
appengine/cmd/logdog_coordinator/vmuser/cron.yaml
|
View
|
1
|
1 chunk |
+3 lines, -8 lines |
0 comments
|
Download
|
 |
M |
appengine/cmd/logdog_coordinator/vmuser/index.yaml
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
appengine/cmd/logdog_coordinator/vmuser/main.go
|
View
|
1
2
|
1 chunk |
+8 lines, -2 lines |
0 comments
|
Download
|
 |
M |
appengine/cmd/logdog_coordinator/vmuser/queue.yaml
|
View
|
1
2
|
1 chunk |
+0 lines, -12 lines |
0 comments
|
Download
|
 |
A |
appengine/logdog/coordinator/archival.go
|
View
|
1
2
|
1 chunk |
+88 lines, -0 lines |
0 comments
|
Download
|
 |
A |
appengine/logdog/coordinator/archivalPublisher.go
|
View
|
1
2
3
|
1 chunk |
+56 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
appengine/logdog/coordinator/auth.go
|
View
|
1
2
|
2 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/backend/archiveCron.go
|
View
|
1
2
|
1 chunk |
+108 lines, -176 lines |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/backend/archiveCron_test.go
|
View
|
1
2
|
4 chunks |
+101 lines, -144 lines |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/backend/backend.go
|
View
|
1
2
|
2 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/backend/util.go
|
View
|
|
2 chunks |
+0 lines, -39 lines |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/backend/util_test.go
|
View
|
|
2 chunks |
+0 lines, -27 lines |
0 comments
|
Download
|
 |
D |
appengine/logdog/coordinator/config/auth.go
|
View
|
1
2
|
1 chunk |
+0 lines, -89 lines |
0 comments
|
Download
|
 |
D |
appengine/logdog/coordinator/config/bigTable.go
|
View
|
1
2
|
1 chunk |
+0 lines, -96 lines |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/config/config.go
|
View
|
1
2
|
2 chunks |
+16 lines, -27 lines |
0 comments
|
Download
|
 |
A |
appengine/logdog/coordinator/coordinatorTest/archival.go
|
View
|
1
2
|
1 chunk |
+69 lines, -0 lines |
0 comments
|
Download
|
 |
D |
appengine/logdog/coordinator/coordinatorTest/config.go
|
View
|
1
2
|
1 chunk |
+0 lines, -40 lines |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/coordinatorTest/logStream.go
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
A |
appengine/logdog/coordinator/coordinatorTest/service.go
|
View
|
1
2
|
1 chunk |
+90 lines, -0 lines |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/endpoints/admin/service.go
|
View
|
1
2
|
1 chunk |
+37 lines, -1 line |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/endpoints/admin/setConfig.go
|
View
|
1
2
|
2 chunks |
+3 lines, -21 lines |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/endpoints/logs/get.go
|
View
|
1
2
|
6 chunks |
+8 lines, -6 lines |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/endpoints/logs/get_test.go
|
View
|
1
2
|
10 chunks |
+39 lines, -38 lines |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/endpoints/logs/list.go
|
View
|
1
2
|
3 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/endpoints/logs/list_test.go
|
View
|
1
2
|
2 chunks |
+7 lines, -5 lines |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/endpoints/logs/query.go
|
View
|
1
2
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/endpoints/logs/query_test.go
|
View
|
1
2
|
7 chunks |
+19 lines, -9 lines |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/endpoints/logs/service.go
|
View
|
1
2
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/endpoints/logs/util.go
|
View
|
|
1 chunk |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/endpoints/services/archiveStream.go
|
View
|
1
2
|
4 chunks |
+57 lines, -24 lines |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/endpoints/services/archiveStream_test.go
|
View
|
1
2
|
4 chunks |
+74 lines, -11 lines |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/endpoints/services/getConfig.go
|
View
|
1
2
|
3 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/endpoints/services/getConfig_test.go
|
View
|
1
2
|
3 chunks |
+12 lines, -18 lines |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/endpoints/services/loadStream.go
|
View
|
1
2
3
|
2 chunks |
+17 lines, -2 lines |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/endpoints/services/loadStream_test.go
|
View
|
1
2
|
3 chunks |
+33 lines, -8 lines |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/endpoints/services/registerStream.go
|
View
|
1
2
|
2 chunks |
+6 lines, -8 lines |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/endpoints/services/registerStream_test.go
|
View
|
1
2
|
2 chunks |
+9 lines, -5 lines |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/endpoints/services/service.go
|
View
|
1
2
|
2 chunks |
+13 lines, -11 lines |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/endpoints/services/service_test.go
|
View
|
1
2
|
3 chunks |
+15 lines, -9 lines |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/endpoints/services/terminateStream.go
|
View
|
1
2
|
4 chunks |
+78 lines, -75 lines |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/endpoints/services/terminateStream_test.go
|
View
|
1
2
|
6 chunks |
+43 lines, -15 lines |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/logStream.go
|
View
|
1
2
|
13 chunks |
+155 lines, -82 lines |
0 comments
|
Download
|
 |
A |
appengine/logdog/coordinator/logStream_migrate.go
|
View
|
1
2
|
1 chunk |
+81 lines, -0 lines |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/logStream_test.go
|
View
|
1
2
|
4 chunks |
+144 lines, -116 lines |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/service.go
|
View
|
1
2
|
2 chunks |
+185 lines, -33 lines |
0 comments
|
Download
|
 |
M |
common/api/logdog_coordinator/logs/v1/pb.discovery.go
|
View
|
|
2 chunks |
+938 lines, -938 lines |
0 comments
|
Download
|
 |
M |
common/api/logdog_coordinator/logs/v1/state.proto
|
View
|
|
2 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
 |
M |
common/api/logdog_coordinator/logs/v1/state.pb.go
|
View
|
|
4 chunks |
+27 lines, -33 lines |
0 comments
|
Download
|
 |
M |
common/api/logdog_coordinator/services/v1/pb.discovery.go
|
View
|
1
2
3
|
1 chunk |
+790 lines, -740 lines |
0 comments
|
Download
|
 |
M |
common/api/logdog_coordinator/services/v1/service.proto
|
View
|
1
2
3
|
3 chunks |
+16 lines, -3 lines |
0 comments
|
Download
|
 |
M |
common/api/logdog_coordinator/services/v1/service.pb.go
|
View
|
1
2
3
|
5 chunks |
+64 lines, -41 lines |
0 comments
|
Download
|
 |
M |
common/api/logdog_coordinator/services/v1/state.proto
|
View
|
1
2
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
common/api/logdog_coordinator/services/v1/state.pb.go
|
View
|
1
2
|
2 chunks |
+13 lines, -15 lines |
0 comments
|
Download
|
 |
M |
common/api/logdog_coordinator/services/v1/tasks.proto
|
View
|
1
2
|
1 chunk |
+20 lines, -2 lines |
0 comments
|
Download
|
 |
M |
common/api/logdog_coordinator/services/v1/tasks.pb.go
|
View
|
1
2
|
3 chunks |
+43 lines, -9 lines |
0 comments
|
Download
|
 |
A |
common/api/logdog_coordinator/services/v1/util.go
|
View
|
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
 |
M |
common/errors/multierror.go
|
View
|
1
2
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
 |
M |
common/errors/multierror_test.go
|
View
|
1
2
|
2 chunks |
+21 lines, -0 lines |
0 comments
|
Download
|
 |
M |
common/gcloud/gs/gs.go
|
View
|
1
2
|
5 chunks |
+122 lines, -21 lines |
0 comments
|
Download
|
 |
M |
common/gcloud/gs/path.go
|
View
|
1
2
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
common/gcloud/pubsub/quota.go
|
View
|
1
2
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
common/logdog/coordinator/query_test.go
|
View
|
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
common/logdog/coordinator/stream.go
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
common/logdog/coordinator/stream_test.go
|
View
|
|
9 chunks |
+0 lines, -9 lines |
0 comments
|
Download
|
 |
M |
common/proto/logdog/svcconfig/config.proto
|
View
|
1
2
|
2 chunks |
+34 lines, -24 lines |
0 comments
|
Download
|
 |
M |
common/proto/logdog/svcconfig/config.pb.go
|
View
|
1
2
|
4 chunks |
+72 lines, -64 lines |
0 comments
|
Download
|
 |
M |
server/cmd/logdog_archivist/main.go
|
View
|
1
2
3
|
3 chunks |
+132 lines, -57 lines |
0 comments
|
Download
|
 |
A |
server/cmd/logdog_archivist/task.go
|
View
|
1
2
3
|
1 chunk |
+78 lines, -0 lines |
0 comments
|
Download
|
 |
M |
server/cmd/logdog_collector/main.go
|
View
|
1
2
3
|
3 chunks |
+19 lines, -19 lines |
0 comments
|
Download
|
 |
M |
server/internal/logdog/archivist/archivist.go
|
View
|
1
2
3
|
4 chunks |
+382 lines, -281 lines |
0 comments
|
Download
|
 |
M |
server/internal/logdog/archivist/archivist_test.go
|
View
|
1
2
3
|
15 chunks |
+237 lines, -95 lines |
0 comments
|
Download
|
 |
A |
server/internal/logdog/archivist/storageSource.go
|
View
|
1
2
|
1 chunk |
+125 lines, -0 lines |
0 comments
|
Download
|
 |
M |
server/internal/logdog/collector/collector.go
|
View
|
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
server/internal/logdog/service/service.go
|
View
|
1
2
3
|
3 chunks |
+24 lines, -0 lines |
0 comments
|
Download
|
 |
M |
server/logdog/archive/archive.go
|
View
|
1
2
|
3 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
 |
M |
server/logdog/storage/archive/storage.go
|
View
|
1
2
|
7 chunks |
+14 lines, -24 lines |
0 comments
|
Download
|
Total messages: 18 (7 generated)
|