Does RawKV guarantee read-your-writes

Hi all,

Recently I’m adopting TiKV in raw mode as a general key-value storage. There are way more write operations than read operations.

The scenario is that

  1. batch put key-value pairs
  2. get one of the keys

Sometimes I cannot get the key right after the batch put operation. But if I sleep like 1s before the get operation, I can get the value as expected.

I thought the data were durable and readable after the batch put operation was done. Am I misunderstanding?


Yes, you can expect reading the latest update from any client. There must be something wrong which you should be investigating.