pingcap / kvproto

Protocol buffer files for TiKV
Apache License 2.0
154 stars 220 forks source link

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

Open liujp opened 1 year ago

liujp commented 1 year ago

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

disksing commented 1 year ago

@YuJuncen could you help to reply this issue?

liujp commented 1 year ago

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