Fix clickhouse keeper jepsen tests

This commit is contained in:
alesapin 2021-08-25 19:15:56 +03:00
parent 884b51116d
commit ea5fbbedec
2 changed files with 3 additions and 2 deletions

View File

@ -300,9 +300,9 @@ int Keeper::main(const std::vector<std::string> & /*args*/)
if (config().has("keeper_server.storage_path")) if (config().has("keeper_server.storage_path"))
path = config().getString("keeper_server.storage_path"); path = config().getString("keeper_server.storage_path");
else if (config().has("keeper_server.log_storage_path")) else if (config().has("keeper_server.log_storage_path"))
path = config().getString("keeper_server.log_storage_path"); path = std::filesystem::path(config().getString("keeper_server.log_storage_path")).parent_path();
else if (config().has("keeper_server.snapshot_storage_path")) else if (config().has("keeper_server.snapshot_storage_path"))
path = config().getString("keeper_server.snapshot_storage_path"); path = std::filesystem::path(config().getString("keeper_server.snapshot_storage_path")).parent_path();
else else
path = std::filesystem::path{KEEPER_DEFAULT_PATH}; path = std::filesystem::path{KEEPER_DEFAULT_PATH};

View File

@ -68,6 +68,7 @@
(do (do
(c/exec :mkdir :-p common-prefix) (c/exec :mkdir :-p common-prefix)
(c/exec :mkdir :-p data-dir) (c/exec :mkdir :-p data-dir)
(c/exec :mkdir :-p coordination-data-dir)
(c/exec :mkdir :-p logs-dir) (c/exec :mkdir :-p logs-dir)
(c/exec :mkdir :-p configs-dir) (c/exec :mkdir :-p configs-dir)
(c/exec :mkdir :-p sub-configs-dir) (c/exec :mkdir :-p sub-configs-dir)