Description
This Jira is to add CRC for chunks data.
Right now a Chunk Info structure looks like this:
message ChunkInfo {
required string chunkName = 1;
required uint64 offset = 2;
required uint64 len = 3;
optional string checksum = 4;
repeated KeyValue metadata = 5;
}
Proposal is to change ChunkInfo structure as below:
message ChunkInfo {
required string chunkName = 1 ;
required uint64 offset = 2 ;
required uint64 len = 3 ;
repeated KeyValue metadata = 4;
required ChecksumData checksumData = 5;
}
The ChecksumData structure would be as follows:
message ChecksumData {
required ChecksumType type = 1;
required uint32 bytesPerChecksum = 2;
repeated bytes checksums = 3;
}
Instead of changing disk format, we put the checksum into chunkInfo.