Skip to content

Commit

Permalink
Remove explicit storage path
Browse files Browse the repository at this point in the history
  • Loading branch information
citrus-it committed Feb 26, 2024
1 parent 1976a66 commit ef8cb9c
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 12 deletions.
1 change: 0 additions & 1 deletion oximeter/db/src/configs/keeper_config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
<tcp_port from_env="CH_LISTEN_PORT"/>
<server_id from_env="CH_KEEPER_ID_CURRENT"/>
<log_storage_path from_env="CH_LOG_STORAGE_PATH"/>
<storage_path from_env="CH_STORAGE_PATH"/>
<snapshot_storage_path from_env="CH_SNAPSHOT_STORAGE_PATH"/>
<coordination_settings>
<operation_timeout_ms>10000</operation_timeout_ms>
Expand Down
3 changes: 1 addition & 2 deletions smf/clickhouse_keeper/keeper_config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@
</logger>

<!-- To allow all use :: -->
<listen_host from_env="CH_LISTEN_ADDR"/>
<listen_host from_env="CH_LISTEN_ADDR"/>
<path replace="true" from_env="CH_DATASTORE"/>

<keeper_server>
<tcp_port from_env="CH_LISTEN_PORT"/>
<server_id from_env="CH_KEEPER_ID_CURRENT"/>
<log_storage_path from_env="CH_LOG_STORAGE_PATH"/>
<storage_path from_env="CH_STORAGE_PATH"/>
<snapshot_storage_path from_env="CH_SNAPSHOT_STORAGE_PATH"/>
<coordination_settings>
<operation_timeout_ms>10000</operation_timeout_ms>
Expand Down
2 changes: 0 additions & 2 deletions smf/clickhouse_keeper/method_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ export CH_DATASTORE=${DATASTORE}
export CH_LISTEN_PORT=${LISTEN_PORT}
export CH_KEEPER_ID_CURRENT=${KEEPER_ID_CURRENT}
export CH_LOG_STORAGE_PATH="${DATASTORE}/log"
export CH_STORAGE_PATH="${DATASTORE}/storage"
export CH_SNAPSHOT_STORAGE_PATH="${DATASTORE}/snapshots"
export CH_KEEPER_ID_01=${KEEPER_ID_01}
export CH_KEEPER_ID_02=${KEEPER_ID_02}
Expand All @@ -96,7 +95,6 @@ CH_DATASTORE="${CH_DATASTORE}"\n\
CH_LISTEN_PORT="${CH_LISTEN_PORT}"\n\
CH_KEEPER_ID_CURRENT="${CH_KEEPER_ID_CURRENT}"\n\
CH_LOG_STORAGE_PATH="${CH_LOG_STORAGE_PATH}"\n\
CH_STORAGE_PATH="${CH_STORAGE_PATH}"\n\
CH_SNAPSHOT_STORAGE_PATH="${CH_SNAPSHOT_STORAGE_PATH}"\n\
CH_KEEPER_ID_01="${CH_KEEPER_ID_01}"\n\
CH_KEEPER_ID_02="${CH_KEEPER_ID_02}"\n\
Expand Down
7 changes: 0 additions & 7 deletions test-utils/src/dev/clickhouse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ impl ClickHouseInstance {
.env("CH_KEEPER_ID_CURRENT", k_id.to_string())
.env("CH_DATASTORE", data_dir.datastore_path())
.env("CH_LOG_STORAGE_PATH", data_dir.keeper_log_storage_path())
.env("CH_STORAGE_PATH", data_dir.keeper_storage_path())
.env(
"CH_SNAPSHOT_STORAGE_PATH",
data_dir.keeper_snapshot_storage_path(),
Expand Down Expand Up @@ -343,8 +342,6 @@ impl ClickHouseDataDir {
.context("failed to create datastore directory")?;
std::fs::create_dir(ret.cwd_path())
.context("failed to create cwd directory")?;
std::fs::create_dir(ret.keeper_storage_path())
.context("failed to create keeper storagedirectory")?;
std::fs::create_dir(ret.keeper_log_storage_path())
.context("failed to create keeper log directory")?;
std::fs::create_dir(ret.keeper_snapshot_storage_path())
Expand Down Expand Up @@ -412,10 +409,6 @@ impl ClickHouseDataDir {
self.dir.path().join("snapshots/")
}

fn keeper_storage_path(&self) -> Utf8PathBuf {
self.dir.path().join("storage/")
}

fn close_clean(self) -> Result<(), anyhow::Error> {
self.dir.close().context("failed to delete ClickHouse data dir")
}
Expand Down

0 comments on commit ef8cb9c

Please sign in to comment.