Skip to content

Commit

Permalink
fix: pass datanode config file in distributed mode sqlness (#2631)
Browse files Browse the repository at this point in the history
* fix: pass datanode config file in distributed mode sqlness

Signed-off-by: Ruihang Xia <[email protected]>

* fix clippy

Signed-off-by: Ruihang Xia <[email protected]>

---------

Signed-off-by: Ruihang Xia <[email protected]>
  • Loading branch information
waynexia authored Oct 20, 2023
1 parent 89ebe47 commit 4d47865
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions tests/conf/datanode-test.toml.template
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion tests/conf/standalone-test.toml.template
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions tests/runner/src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}"))
}
Expand Down

0 comments on commit 4d47865

Please sign in to comment.