yiguolei commented on code in PR #16940:
URL: https://github.com/apache/doris/pull/16940#discussion_r1125802284
##########
be/src/io/file_factory.cpp:
##########
@@ -195,6 +197,18 @@ Status FileFactory::create_pipe_reader(const TUniqueId&
load_id, io::FileReaderS
if (!stream_load_ctx) {
return Status::InternalError("unknown stream load id: {}",
UniqueId(load_id).to_string());
}
+ // Now pipe is used to fetch schema, need to wait restore.
+ if (stream_load_ctx->need_wait_restore_pipe) {
+ std::future_status future_status =
+
stream_load_ctx->restore_pipe_future.wait_for(std::chrono::seconds(1));
+ if (future_status == std::future_status::timeout) {
+ return Status::TimedOut("wait restore stream load pipe timeout");
+ }
+ RETURN_IF_ERROR(stream_load_ctx->restore_pipe_future.get());
+ *file_reader = stream_load_ctx->pipe;
+ return Status::OK();
+ ;
Review Comment:
delete it
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]