Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion be/src/olap/options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down
4 changes: 2 additions & 2 deletions be/src/runtime/exec_env_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down