HappenLee commented on code in PR #30082:
URL: https://github.com/apache/doris/pull/30082#discussion_r1462686000


##########
be/src/vec/sink/async_writer_sink.h:
##########
@@ -105,21 +105,24 @@ class AsyncWriterSink : public DataSink {
         if (_writer) {
             // For pipeline engine, the writer is always closed in async 
thread process_block
             if (state->enable_pipeline_exec()) {
-                RETURN_IF_ERROR(_writer->get_writer_status());
+                Status st = _writer->get_writer_status();
+                if (exec_status.ok()) {
+                    _writer->force_close(state->is_cancelled() ? 
Status::Cancelled("Cancelled")

Review Comment:
   which case the cancel the writer for `force close`



-- 
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

Reply via email to