Skip to content

[QUESTION] ImportSST::Upload and Ingest rpc method can be used or not ? #895

@mzygQAQ

Description

@mzygQAQ

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) {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions