This is an automated email from the ASF dual-hosted git repository.
panxiaolei pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 3c017976542 branch-3.0: [Chore](pipeline) catch exception on
task::prepare to avoid exception make backend coredump #45479 (#45505)
3c017976542 is described below
commit 3c017976542e36b05304c2672ebdd2ffca0764cb
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Dec 17 14:38:03 2024 +0800
branch-3.0: [Chore](pipeline) catch exception on task::prepare to avoid
exception make backend coredump #45479 (#45505)
Cherry-picked from #45479
Co-authored-by: Pxl <[email protected]>
---
be/src/pipeline/pipeline_fragment_context.cpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/be/src/pipeline/pipeline_fragment_context.cpp
b/be/src/pipeline/pipeline_fragment_context.cpp
index 48f2d96597c..0873adfebf4 100644
--- a/be/src/pipeline/pipeline_fragment_context.cpp
+++ b/be/src/pipeline/pipeline_fragment_context.cpp
@@ -34,6 +34,7 @@
#include "cloud/config.h"
#include "common/config.h"
+#include "common/exception.h"
#include "common/logging.h"
#include "common/status.h"
#include "io/fs/stream_load_pipe.h"
@@ -493,8 +494,8 @@ Status PipelineFragmentContext::_build_pipeline_tasks(const
doris::TPipelineFrag
if (pipeline_id_to_task.contains(_pipelines[pip_idx]->id())) {
auto* task = pipeline_id_to_task[_pipelines[pip_idx]->id()];
DCHECK(pipeline_id_to_profile[pip_idx]);
- RETURN_IF_ERROR(task->prepare(local_params,
request.fragment.output_sink,
- _query_ctx.get()));
+ RETURN_IF_ERROR_OR_CATCH_EXCEPTION(task->prepare(
+ local_params, request.fragment.output_sink,
_query_ctx.get()));
}
}
{
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]