package import_sstpb

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

service ImportSST

import_sstpb.proto:39

ImportSST provides a service to import a generated SST file to a region in TiKV. In order to import an SST file to a region, the user should: 1. Retrieve the meta of the region according to the SST file's range. 2. Upload the SST file to the servers where the region's peers locate in. 3. Issue an ingest request to the region's leader with the SST file's metadata. It's the user's responsibility to make sure that the SST file is uploaded to the servers where the region's peers locate in, before issue the ingest request to the region's leader. However, the region can be scheduled (so the location of the region's peers will be changed) or split/merged (so the range of the region will be changed), after the SST file is uploaded, but before the SST file is ingested. So, the region's epoch is provided in the SST file's metadata, to guarantee that the region's epoch must be the same between the SST file is uploaded and ingested later.

message CompactRequest

import_sstpb.proto:175

Used as request type in: ImportSST.Compact

Used as field type in: import_kvpb.CompactClusterRequest

enum DownloadRequestType

import_sstpb.proto:237

Used in: DownloadRequest

message Error

import_sstpb.proto:246

For now it is just used for distinguishing the error of the request with the error of gRPC, add more concrete types if it is necessary later.

Used in: ApplyResponse, ClearResponse, DownloadResponse, DuplicateDetectResponse, RawWriteResponse, WriteResponse

message IngestResponse

import_sstpb.proto:171

Used as response type in: ImportSST.Ingest, ImportSST.MultiIngest

message KVMeta

import_sstpb.proto:369

Used in: ApplyRequest

message KvPair

import_sstpb.proto:347

Used in: DuplicateDetectResponse

message Pair

import_sstpb.proto:284

Used in: RawWriteBatch, WriteBatch

enum Pair.OP

import_sstpb.proto:287

Used in: Pair

message Range

import_sstpb.proto:114

Used in: ApplyResponse, CompactRequest, DownloadResponse, SSTMeta, SwitchModeRequest

message RawWriteBatch

import_sstpb.proto:312

Used in: RawWriteRequest

message RewriteRule

import_sstpb.proto:140

A rewrite rule is applied on the *encoded* keys (the internal storage representation).

Used in: ApplyRequest, DownloadRequest

message SSTMeta

import_sstpb.proto:119

Used in: DownloadRequest, DownloadResponse, IngestRequest, MultiIngestRequest, RawWriteRequest, RawWriteResponse, UploadRequest, WriteRequest, WriteResponse, raft_cmdpb.IngestSSTRequest

enum SwitchMode

import_sstpb.proto:94

Used in: GetModeResponse, SwitchModeRequest

message SwitchModeRequest

import_sstpb.proto:99

Used as request type in: ImportSST.SwitchMode

Used as field type in: import_kvpb.SwitchModeRequest

message WriteBatch

import_sstpb.proto:294

Used in: WriteRequest