gavinchou commented on code in PR #42629: URL: https://github.com/apache/doris/pull/42629#discussion_r1818973034
########## be/src/io/hdfs_util.cpp: ########## @@ -41,6 +44,54 @@ Status create_hdfs_fs(const THdfsParams& hdfs_params, const std::string& fs_name return Status::OK(); } +Status create_hdfs_fs_async(const THdfsParams& hdfs_params, const std::string& fs_name, + hdfsFS* fs) { + std::promise<std::pair<Status, hdfsFS>> prom; + std::future<std::pair<Status, hdfsFS>> fut = prom.get_future(); + + std::thread t( + [&](std::promise<std::pair<Status, hdfsFS>> prom) { Review Comment: why not just call `create_hdfs_fs_sync()` here? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org