From 44de20bfc62a40ca5cb7cd13175bffc9c96e671a Mon Sep 17 00:00:00 2001 From: Ping Yu Date: Fri, 7 Jun 2024 16:21:48 +0800 Subject: [PATCH 1/5] Fix faq about tidb + rawkv Signed-off-by: Ping Yu --- faq/manage-cluster-faq.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/faq/manage-cluster-faq.md b/faq/manage-cluster-faq.md index 1a6955b1e1cf6..2eb2ba57a3803 100644 --- a/faq/manage-cluster-faq.md +++ b/faq/manage-cluster-faq.md @@ -415,7 +415,12 @@ The memory usage of TiKV mainly comes from the block-cache of RocksDB, which is ### Can both TiDB data and RawKV data be stored in the same TiKV cluster? -No. TiDB (or data created from the transactional API) relies on a specific key format. It is not compatible with data created from RawKV API (or data from other RawKV-based services). +Yes, but only when: + +- TiDB version >= `v6.1.0`, and +- TiKV API V2 is enabled ([`storage.api-version = 2`](/tikv-configuration-file.md#api-version-new-in-v610)). + +Otherwise, no, as key format of TiDB (or data created from the transactional API) is not compatible with data created from RawKV API (or data from other RawKV-based services). ## TiDB testing From d97f9a4e6a4045fdc4924a32ae807d583edef212 Mon Sep 17 00:00:00 2001 From: Ping Yu Date: Fri, 7 Jun 2024 19:13:28 +0800 Subject: [PATCH 2/5] Apply suggestions from code review Co-authored-by: Grace Cai --- faq/manage-cluster-faq.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/faq/manage-cluster-faq.md b/faq/manage-cluster-faq.md index 2eb2ba57a3803..02dac66a7550a 100644 --- a/faq/manage-cluster-faq.md +++ b/faq/manage-cluster-faq.md @@ -415,12 +415,10 @@ The memory usage of TiKV mainly comes from the block-cache of RocksDB, which is ### Can both TiDB data and RawKV data be stored in the same TiKV cluster? -Yes, but only when: +It depends on your TiDB version and whether TiKV API V2 ([`storage.api-version = 2`](/tikv-configuration-file.md#api-version-new-in-v610)) is enabled. -- TiDB version >= `v6.1.0`, and -- TiKV API V2 is enabled ([`storage.api-version = 2`](/tikv-configuration-file.md#api-version-new-in-v610)). - -Otherwise, no, as key format of TiDB (or data created from the transactional API) is not compatible with data created from RawKV API (or data from other RawKV-based services). +- If your TiDB version is v6.1.0 or later and TiKV API V2 is enabled, TiDB data and RawKV data can be stored in the same TiKV cluster. +- Otherwise, the answer is no because the key format of TiDB (or data created using the transactional API) is incompatible with data created using the RawKV API (or data from other RawKV-based services). ## TiDB testing From ab010ae87367b640cb94b4ca173b98df68c4a3fc Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Tue, 11 Jun 2024 09:45:44 +0800 Subject: [PATCH 3/5] Update faq/manage-cluster-faq.md --- faq/manage-cluster-faq.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/faq/manage-cluster-faq.md b/faq/manage-cluster-faq.md index 02dac66a7550a..45c89048763c1 100644 --- a/faq/manage-cluster-faq.md +++ b/faq/manage-cluster-faq.md @@ -415,7 +415,7 @@ The memory usage of TiKV mainly comes from the block-cache of RocksDB, which is ### Can both TiDB data and RawKV data be stored in the same TiKV cluster? -It depends on your TiDB version and whether TiKV API V2 ([`storage.api-version = 2`](/tikv-configuration-file.md#api-version-new-in-v610)) is enabled. +It depends on your TiDB version and whether TiKV API V2 is enabled ([`storage.api-version = 2`](/tikv-configuration-file.md#api-version-new-in-v610)) . - If your TiDB version is v6.1.0 or later and TiKV API V2 is enabled, TiDB data and RawKV data can be stored in the same TiKV cluster. - Otherwise, the answer is no because the key format of TiDB (or data created using the transactional API) is incompatible with data created using the RawKV API (or data from other RawKV-based services). From 52667c9de5dd955c6fcbfcf3159f53a95b394d37 Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Tue, 11 Jun 2024 10:57:53 +0800 Subject: [PATCH 4/5] Update faq/manage-cluster-faq.md --- faq/manage-cluster-faq.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/faq/manage-cluster-faq.md b/faq/manage-cluster-faq.md index 45c89048763c1..0353f4ced028e 100644 --- a/faq/manage-cluster-faq.md +++ b/faq/manage-cluster-faq.md @@ -415,7 +415,7 @@ The memory usage of TiKV mainly comes from the block-cache of RocksDB, which is ### Can both TiDB data and RawKV data be stored in the same TiKV cluster? -It depends on your TiDB version and whether TiKV API V2 is enabled ([`storage.api-version = 2`](/tikv-configuration-file.md#api-version-new-in-v610)) . +It depends on your TiDB version and whether TiKV API V2 is enabled ([`storage.api-version = 2`](/tikv-configuration-file.md#api-version-new-in-v610)). - If your TiDB version is v6.1.0 or later and TiKV API V2 is enabled, TiDB data and RawKV data can be stored in the same TiKV cluster. - Otherwise, the answer is no because the key format of TiDB (or data created using the transactional API) is incompatible with data created using the RawKV API (or data from other RawKV-based services). From 0ff13b54b9a28e59914a9c043ea2f0a2c2f17305 Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Tue, 11 Jun 2024 14:02:08 +0800 Subject: [PATCH 5/5] Update faq/manage-cluster-faq.md --- faq/manage-cluster-faq.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/faq/manage-cluster-faq.md b/faq/manage-cluster-faq.md index 0353f4ced028e..aa4147e8483f6 100644 --- a/faq/manage-cluster-faq.md +++ b/faq/manage-cluster-faq.md @@ -418,7 +418,7 @@ The memory usage of TiKV mainly comes from the block-cache of RocksDB, which is It depends on your TiDB version and whether TiKV API V2 is enabled ([`storage.api-version = 2`](/tikv-configuration-file.md#api-version-new-in-v610)). - If your TiDB version is v6.1.0 or later and TiKV API V2 is enabled, TiDB data and RawKV data can be stored in the same TiKV cluster. -- Otherwise, the answer is no because the key format of TiDB (or data created using the transactional API) is incompatible with data created using the RawKV API (or data from other RawKV-based services). +- Otherwise, the answer is no because the key format of TiDB data (or data created using the transactional API) is incompatible with data created using the RawKV API (or data from other RawKV-based services). ## TiDB testing