From aee529029d6a1150eb8e8e2395f53e879db04b1c 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 336a7b0a7d293cc233ab8036486f087dc0e0d10d 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 e7e0e40665c256e5c39ea605768653c1b1e42cb0 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 3812a9ca8955e8268694864fb3512a58c1e07cc3 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 67623f6e78473bc7f4e4e69450ebddf9697331c8 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