Skip to content

Commit

Permalink
[Chore](pipeline) catch exception on task::prepare to avoid exception…
Browse files Browse the repository at this point in the history
… make backend coredump (apache#45479)

catch exception on task::prepare to avoid exception make backend
coredump
  • Loading branch information
BiteTheDDDDt authored Dec 17, 2024
1 parent f7187a9 commit ce5753d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions be/src/pipeline/pipeline_fragment_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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()));
}
}
{
Expand Down

0 comments on commit ce5753d

Please sign in to comment.