i notice that the upload and ingest methods:
I wonder if it can be used to import SST files into tikv(used with txn-client) ?
|
rpc Upload(stream UploadRequest) returns (UploadResponse) {} |
|
// Ingest an uploaded SST file to a region. |
|
rpc Ingest(IngestRequest) returns (IngestResponse) {} |
I checked the source code of some import tools of tidb like tikv-br, tidb-lightning and found that they did not use these two interfaces (upload and ingest), but called importsst:: write / rawwrite. Why?
|
rpc Write(stream WriteRequest) returns (WriteResponse) {} |
|
rpc RawWrite(stream RawWriteRequest) returns (RawWriteResponse) {} |
i notice that the
uploadandingestmethods:I wonder if it can be used to import SST files into tikv(used with txn-client) ?
kvproto/proto/import_sstpb.proto
Lines 38 to 40 in 8c4cd3f
I checked the source code of some import tools of tidb like
tikv-br,tidb-lightningand found that they did not use these two interfaces (upload and ingest), but called importsst:: write / rawwrite. Why?kvproto/proto/import_sstpb.proto
Lines 50 to 51 in 8c4cd3f