This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 590459ba8ef branch-3.0: [fix](cloud) explicit message when parse
file_cache_path error #44004 (#44157)
590459ba8ef is described below
commit 590459ba8ef890e0c093ea36ed5411636d81d809
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Nov 26 19:19:54 2024 +0800
branch-3.0: [fix](cloud) explicit message when parse file_cache_path error
#44004 (#44157)
Cherry-picked from #44004
Co-authored-by: zhengyu <[email protected]>
---
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 51714c7deb2..b91adb4de98 100644
--- a/be/src/runtime/exec_env_init.cpp
+++ b/be/src/runtime/exec_env_init.cpp
@@ -418,8 +418,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]