Page MenuHomePhabricator

[services] Backup - Add chunk counter to proto
AbandonedPublic

Authored by karol on Jun 7 2022, 6:51 AM.
Tags
None
Referenced Files
F3299594: D4229.diff
Sun, Nov 17, 1:58 PM
Unknown Object (File)
Sat, Nov 9, 2:07 AM
Unknown Object (File)
Thu, Nov 7, 4:31 PM
Unknown Object (File)
Tue, Nov 5, 5:01 PM
Unknown Object (File)
Sun, Oct 20, 7:19 PM
Unknown Object (File)
Oct 13 2024, 12:48 PM
Unknown Object (File)
Oct 13 2024, 12:47 PM
Unknown Object (File)
Oct 13 2024, 12:45 PM

Details

Summary

Depends on D4228

We need to be able to separate logs from each other when we pull the backup from the cloud.
For now, we just read the following log chunks without knowing how many logs we really get since multiple chunks can fit into one log.

With the chunk counter, we can easily recognize when we get a new log - whenever the counter is 0.

Test Plan

this itself doesn't do anything - none.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Adding myself since it's a .proto diff! Please remember to include me on all of these.

  1. So the idea here is that chunkCounter is 0 when there is a new chunk? What's the value when there is an old chunk?
  2. Does a "log chunk" contain multiple chunks? Or does a log get split into multiple chunks?

It looks like there are some answers to my questions in D4230:

  1. A log or a compaction can contain multiple chunks. A single chunk only pertains to a single log or a single compaction
  2. The chunkCounter gets incremented for each subsequent chunk that pertains to the same log or compaction

Adding myself since it's a .proto diff! Please remember to include me on all of these.

Right, sorry I missed this.

You got the idea right.

This revision is now accepted and ready to land.Jun 8 2022, 6:24 AM