This is an automated email from the ASF dual-hosted git repository.
gavinchou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new c050f54dc69 [fix](cloud) explicit message when parse file_cache_path
error (#44004)
c050f54dc69 is described below
commit c050f54dc69a082ce6c37c4e7c860f1837c46e1b
Author: zhengyu <[email protected]>
AuthorDate: Mon Nov 18 14:49:33 2024 +0800
[fix](cloud) explicit message when parse file_cache_path error (#44004)
print more explicit reason why file_cache_path fail to parse
---
be/src/olap/options.cpp | 5 ++++-
be/src/runtime/exec_env_init.cpp | 4 ++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/be/src/olap/options.cpp b/be/src/olap/options.cpp
index 8668f8319d1..6e4cb61e3d0 100644
--- a/be/src/olap/options.cpp
+++ b/be/src/olap/options.cpp
@@ -283,7 +283,10 @@ Status parse_conf_cache_paths(const std::string&
config_path, std::vector<CacheP
} else if (has_normal_percent || has_disposable_percent ||
has_index_percent ||
has_ttl_percent) {
return Status::InvalidArgument(
- "cache percent config must either be all set or all
unset.");
+ "cache percent (ttl_percent, index_percent,
normal_percent, "
+ "disposable_percent) must either be all set or all unset. "
+ "when all unset, use default: ttl_percent=50,
index_percent=5, "
+ "normal_percent=40, disposable_percent=5.");
}
if ((normal_percent + disposable_percent + index_percent +
ttl_percent) != 100) {
return Status::InvalidArgument("The sum of cache percent config
must equal 100.");
diff --git a/be/src/runtime/exec_env_init.cpp b/be/src/runtime/exec_env_init.cpp
index 0f0b677bb1c..706fd7efd07 100644
--- a/be/src/runtime/exec_env_init.cpp
+++ b/be/src/runtime/exec_env_init.cpp
@@ -421,8 +421,8 @@ void
ExecEnv::init_file_cache_factory(std::vector<doris::CachePath>& cache_paths
std::unordered_set<std::string> cache_path_set;
Status rest =
doris::parse_conf_cache_paths(doris::config::file_cache_path, cache_paths);
if (!rest) {
- LOG(FATAL) << "parse config file cache path failed, path="
- << doris::config::file_cache_path;
+ LOG(FATAL) << "parse config file cache path failed, path=" <<
doris::config::file_cache_path
+ << ", reason=" << rest.msg();
exit(-1);
}
std::vector<std::thread> file_cache_init_threads;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]