pingcap / kvproto

Protocol buffer files for TiKV

Repository from Github https://github.compingcap/kvprotoRepository from Github https://github.compingcap/kvproto

[QUESTION] The difference of the ImportSST::Upload and Ingest Write/RawWrite

liujp opened this issue · comments

commented

image

My question is that : How to use the Write/Rawrite RPC method to write the key-values to the tikvcluster?

  1. Should the key-value to be written be ordered? if so, the it seems no different with the upload and ingest;

  2. I write the values using this interface, there is an error, invalid chunk:
    image

  3. how to write key-values to the tikv cluster properly, Can it be compatible with
    image

@YuJuncen could you help to reply this issue?

commented

Got that, the writer is transaction writer while the rawWrite is for rawKv writer, and both writer is a rocksdb engine, so the batch key-values to be written in can be un-order