Page MenuHomePhabricator

[services] Backup - Add chunk counter to proto
AbandonedPublic

Authored by karol on Jun 7 2022, 6:51 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 14, 12:25 AM
Unknown Object (File)
Sun, Nov 24, 3:32 AM
Unknown Object (File)
Nov 18 2024, 1:51 PM
Unknown Object (File)
Nov 17 2024, 3:50 PM
Unknown Object (File)
Nov 17 2024, 1:58 PM
Unknown Object (File)
Nov 9 2024, 2:07 AM
Unknown Object (File)
Nov 7 2024, 4:31 PM
Unknown Object (File)
Nov 5 2024, 5:01 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