From c5701660e66f401792a1e6a4f18196c937a0a805 Mon Sep 17 00:00:00 2001 From: ekexium Date: Fri, 7 May 2021 18:45:18 +0800 Subject: [PATCH] CI: increase region-split-keys Signed-off-by: ekexium --- config/tikv.toml | 4 ++-- tests/common/ctl.rs | 7 ------- tests/common/mod.rs | 2 +- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/config/tikv.toml b/config/tikv.toml index bf00961..f878d34 100644 --- a/config/tikv.toml +++ b/config/tikv.toml @@ -1,6 +1,6 @@ [coprocessor] -region-max-keys = 5 -region-split-keys = 3 +region-max-keys = 10 +region-split-keys = 7 batch-split-limit = 100 [raftstore] diff --git a/tests/common/ctl.rs b/tests/common/ctl.rs index 01046c6..0c78f3c 100644 --- a/tests/common/ctl.rs +++ b/tests/common/ctl.rs @@ -19,10 +19,3 @@ pub async fn get_region_count() -> Result { .as_u64() .ok_or_else(|| Error::StringError("pd region count does not return an integer".to_owned())) } - -#[tokio::test] -#[ignore] -async fn test_get_region_count() -> Result<()> { - println!("{}", get_region_count().await?); - Ok(()) -} diff --git a/tests/common/mod.rs b/tests/common/mod.rs index 1fb3f18..3dc849d 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -42,7 +42,7 @@ pub async fn init() -> Result<()> { .take(count as usize - 1) .map(|x| x.to_be_bytes().to_vec()); - ensure_region_split(keys_1.chain(keys_2), 100).await?; + ensure_region_split(keys_1.chain(keys_2), 80).await?; } clear_tikv().await;