diff --git a/be/src/runtime/exec_env_init.cpp b/be/src/runtime/exec_env_init.cpp index ee0ad2c93f5db7..fd6f61a294d8e2 100644 --- a/be/src/runtime/exec_env_init.cpp +++ b/be/src/runtime/exec_env_init.cpp @@ -349,6 +349,8 @@ Status ExecEnv::_init(const std::vector& store_paths, _runtime_query_statistics_mgr->start_report_thread(); _s_ready = true; + // Make aws-sdk-cpp InitAPI and ShutdownAPI called in the same thread + S3ClientFactory::instance(); return Status::OK(); }