We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.0.9
doris_be_process_thread_num is always 0 , maybe is_regular_file should be replaced by is_directory
void DorisMetrics::_update_process_thread_num() { std::error_code ec; std::filesystem::directory_iterator dict_iter("/proc/self/task/", ec); if (ec) { LOG(WARNING) << "failed to count thread num: " << ec.message(); process_fd_num_used->set_value(0); return; } int64_t count = std::count_if(dict_iter, std::filesystem::end(dict_iter), [](const auto& entry) { std::error_code error_code; return entry.is_regular_file(error_code) && !error_code; }); process_thread_num->set_value(count); }`
get right doris_be_process_thread_num
No response
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Search before asking
Version
2.0.9
What's Wrong?
doris_be_process_thread_num is always 0 , maybe is_regular_file should be replaced by is_directory
What You Expected?
get right doris_be_process_thread_num
How to Reproduce?
No response
Anything Else?
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: