This is an automated email from the ASF dual-hosted git repository.
panxiaolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new ce5753d3dcb [Chore](pipeline) catch exception on task::prepare to
avoid exception make backend coredump (#45479)
ce5753d3dcb is described below
commit ce5753d3dcb32328c4b86cc084d5a162bdf9f394
Author: Pxl <[email protected]>
AuthorDate: Tue Dec 17 11:55:28 2024 +0800
[Chore](pipeline) catch exception on task::prepare to avoid exception make
backend coredump (#45479)
catch exception on task::prepare to avoid exception make backend
coredump
---
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 8ab0f1d1515..5ae89db55a4 100644
--- a/be/src/pipeline/pipeline_fragment_context.cpp
+++ b/be/src/pipeline/pipeline_fragment_context.cpp
@@ -35,6 +35,7 @@
#include "cloud/config.h"
#include "common/cast_set.h"
#include "common/config.h"
+#include "common/exception.h"
#include "common/logging.h"
#include "common/status.h"
#include "io/fs/stream_load_pipe.h"
@@ -498,8 +499,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]