Skip to content

Commit

Permalink
set require_lease_before_startup to true
Browse files Browse the repository at this point in the history
Signed-off-by: Ruihang Xia <[email protected]>
  • Loading branch information
waynexia committed Sep 19, 2023
1 parent 3abd5f9 commit f83b24e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests-integration/src/test_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ pub fn create_tmp_dir_and_datanode_opts(
pub(crate) fn create_datanode_opts(store: ObjectStoreConfig, home_dir: String) -> DatanodeOptions {
DatanodeOptions {
node_id: Some(0),
require_lease_before_startup: true,
storage: StorageConfig {
data_home: home_dir,
store,
Expand Down
2 changes: 1 addition & 1 deletion tests-integration/tests/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ pub async fn test_config_api(store_type: StorageType) {
let expected_toml_str = format!(
r#"mode = "standalone"
node_id = 0
require_lease_before_startup = false
require_lease_before_startup = true
rpc_addr = "127.0.0.1:3001"
rpc_runtime_size = 8
enable_telemetry = true
Expand Down
1 change: 1 addition & 0 deletions tests/conf/datanode-test.toml.template
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_id = 1
mode = 'distributed'
require_lease_before_startup = true
rpc_addr = '127.0.0.1:4100'
rpc_hostname = '127.0.0.1'
rpc_runtime_size = 8
Expand Down
1 change: 1 addition & 0 deletions tests/conf/standalone-test.toml.template
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
mode = 'standalone'
enable_memory_catalog = false
require_lease_before_startup = true

[wal]
file_size = '1GB'
Expand Down

0 comments on commit f83b24e

Please sign in to comment.