This is an automated email from the ASF dual-hosted git repository. tarmstrong pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/impala.git
The following commit(s) were added to refs/heads/master by this push: new a4cf449 Fix for startup crash in scheduler-benchmark. a4cf449 is described below commit a4cf449c88ef3fe08db9abbad82664b99382014c Author: Shant Hovsepian <sh...@superdupershant.com> AuthorDate: Mon Nov 23 22:05:36 2020 -0500 Fix for startup crash in scheduler-benchmark. Updated scheduler-benchmark's main() to use the newer impala::InitCommonRuntime() initialization methods. Before this change the benchmark would compile properly but crash when run. Testing: * built and ran in debug and release mode. Change-Id: Ib9fba3b97f102e41f2024a2bfaacbf0568bd4c68 Reviewed-on: http://gerrit.cloudera.org:8080/16778 Reviewed-by: Joe McDonnell <joemcdonn...@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com> --- be/src/benchmarks/scheduler-benchmark.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/be/src/benchmarks/scheduler-benchmark.cc b/be/src/benchmarks/scheduler-benchmark.cc index f7df4ef..3fc6079 100644 --- a/be/src/benchmarks/scheduler-benchmark.cc +++ b/be/src/benchmarks/scheduler-benchmark.cc @@ -26,7 +26,10 @@ #include "util/debug-util.h" #include "util/thread.h" +#include "codegen/llvm-codegen.h" +#include "common/init.h" #include "common/names.h" +#include "service/fe-support.h" using namespace impala; using namespace impala::test; @@ -160,9 +163,9 @@ void RunNumBlocksBenchmark(TReplicaPreference::type replica_preference) { } int main(int argc, char** argv) { - google::InitGoogleLogging(argv[0]); - CpuInfo::Init(); - impala::InitThreading(); + impala::InitCommonRuntime(argc, argv, true, impala::TestInfo::BE_TEST); + impala::InitFeSupport(); + ABORT_IF_ERROR(LlvmCodeGen::InitializeLlvm()); cout << Benchmark::GetMachineInfo() << endl; RunClusterSizeBenchmark(TReplicaPreference::DISK_LOCAL);