diff --git a/be/src/runtime/exec_env_init.cpp b/be/src/runtime/exec_env_init.cpp index 30bf17e3424bff..22986cce191a2c 100644 --- a/be/src/runtime/exec_env_init.cpp +++ b/be/src/runtime/exec_env_init.cpp @@ -373,6 +373,8 @@ Status ExecEnv::_init(const std::vector& store_paths, _dict_factory = new doris::vectorized::DictionaryFactory(); _s_ready = true; + // Make aws-sdk-cpp InitAPI and ShutdownAPI called in the same thread + S3ClientFactory::instance(); return Status::OK(); }