Yonghwan Lee created IMPALA-13413:
-------------------------------------
Summary: num_cores flag does not work.
Key: IMPALA-13413
URL: https://issues.apache.org/jira/browse/IMPALA-13413
Project: IMPALA
Issue Type: Bug
Components: Backend
Affects Versions: Impala 4.4.1
Reporter: Yonghwan Lee
The `num_cores` Flag does not work.
The cause is that CpuInfo::Init() is called before
google::ParseCommandLineFlags(&argc, &argv, true) within the InitCommonRuntime
function in init.cc.
Other functions (e.g. DiskInfo, MemInfo, etc.) do not use the value (Gflag)
parsed from the CommandLine in the Init() function, but in the case of CpuInfo,
FLAGS_num_cores is used within Init().
Since google::ParseCommandLineFlags(&argc, &argv, true) has not yet been
called, its value is set to 0, and if (FLAGS_num_cores > 0) num_cores_ =
FLAGS_num_cores; It is confirmed that the syntax does not work.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)