From 4d478658b5c9829fc953b404e4241bb2f438bb3c Mon Sep 17 00:00:00 2001 From: Ruihang Xia Date: Fri, 20 Oct 2023 18:57:23 +0800 Subject: [PATCH] fix: pass datanode config file in distributed mode sqlness (#2631) * fix: pass datanode config file in distributed mode sqlness Signed-off-by: Ruihang Xia * fix clippy Signed-off-by: Ruihang Xia --------- Signed-off-by: Ruihang Xia --- tests/conf/datanode-test.toml.template | 3 +-- tests/conf/standalone-test.toml.template | 2 +- tests/runner/src/env.rs | 2 ++ 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/conf/datanode-test.toml.template b/tests/conf/datanode-test.toml.template index a7ce09693f..bda5b8cb36 100644 --- a/tests/conf/datanode-test.toml.template +++ b/tests/conf/datanode-test.toml.template @@ -4,12 +4,11 @@ require_lease_before_startup = true rpc_addr = '127.0.0.1:4100' rpc_hostname = '127.0.0.1' rpc_runtime_size = 8 -require_lease_before_startup = true [wal] file_size = '1GB' purge_interval = '10m' -purge_threshold = '50GB' +purge_threshold = '10GB' read_batch_size = 128 sync_write = false diff --git a/tests/conf/standalone-test.toml.template b/tests/conf/standalone-test.toml.template index f81f73b9a2..b0b20809da 100644 --- a/tests/conf/standalone-test.toml.template +++ b/tests/conf/standalone-test.toml.template @@ -5,7 +5,7 @@ require_lease_before_startup = true [wal] file_size = '1GB' purge_interval = '10m' -purge_threshold = '50GB' +purge_threshold = '10GB' read_batch_size = 128 sync_write = false diff --git a/tests/runner/src/env.rs b/tests/runner/src/env.rs index 8455252e4d..498e08ac77 100644 --- a/tests/runner/src/env.rs +++ b/tests/runner/src/env.rs @@ -235,6 +235,8 @@ impl Env { args.push(format!("--http-addr=127.0.0.1:430{id}")); args.push(format!("--data-home={}", data_home.display())); args.push(format!("--node-id={id}")); + args.push("-c".to_string()); + args.push(self.generate_config_file(subcommand, db_ctx)); args.push("--metasrv-addr=127.0.0.1:3002".to_string()); (args, format!("127.0.0.1:410{id}")) }