From fca330b6e5f57f4b93b5539463eba1ac7540c1f3 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 dbe5982a64433..5c020c7eb16b0 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 3ca1362f0e1ca3e7adea11bb67f8bf357efb6642 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 5c020c7eb16b0..a496d7345b50e 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 155c0a0460d0c2673a8ccee0326cb087f9634432 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 a496d7345b50e..86e59b69290d1 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 3a4582aed317dd2980cd0adfe4e1ca9160e9d8e5 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 86e59b69290d1..fafa6688e9b93 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 30bc46c0eed0ce2711023bf357ac86ee522fad31 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 fafa6688e9b93..4449387409fd9 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