Add error codes for sql module, !! Please Read Task Description Carefully!!

This commit is contained in:
obdev
2023-08-01 17:18:33 +00:00
committed by ob-robot
parent a706aa36a0
commit a56c5b6dec
63 changed files with 106 additions and 67 deletions

View File

@ -245,7 +245,7 @@ int ObRDWFPieceMsgCtx::send_whole_msg(common::ObIArray<ObPxSqcMeta *> &sqcs)
auto wf = static_cast<const ObWindowFunctionSpec *>(op_kit->spec_);
if (OB_FAIL(wf->rd_generate_patch(*this))) {
LOG_WARN("calculate range distribution window function final res failed", K(ret));
} else if (formalize_store_row()) {
} else if (OB_FAIL(formalize_store_row())) {
LOG_WARN("formalize store row failed", K(ret));
} else {
LOG_DEBUG("after formalize", K(infos_));

View File

@ -1014,6 +1014,7 @@ int ObPxTransmitOp::link_ch_sets(ObPxTaskChSet &ch_set,
} else if (OB_FAIL(ObDtlChannelGroup::link_channel(ci, ch, dfc))) {
LOG_WARN("fail link channel", K(ci), K(ret));
} else if (OB_ISNULL(ch)) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("fail add qc channel", K(ret));
} else if (OB_FAIL(channels.push_back(ch))) {
failed_in_push_back_to_channels = true;

View File

@ -572,6 +572,7 @@ int ObSerialDfoScheduler::do_schedule_dfo(ObExecContext &ctx, ObDfo &dfo) const
if (OB_FAIL(ObDtlChannelGroup::link_channel(ci, ch))) {
LOG_WARN("fail link channel", K(ci), K(ret));
} else if (OB_ISNULL(ch)) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("fail add qc channel", K(ret));
} else {
ch->set_qc_owner();
@ -732,6 +733,7 @@ int ObParallelDfoScheduler::do_schedule_dfo(ObExecContext &exec_ctx, ObDfo &dfo)
if (OB_FAIL(ObDtlChannelGroup::link_channel(ci, ch))) {
LOG_WARN("fail link channel", K(ci), K(ret));
} else if (OB_ISNULL(ch)) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("fail add qc channel", K(ret));
} else {
ch->set_qc_owner();

View File

@ -820,7 +820,7 @@ int ObGranuleIteratorOp::get_gi_task_consumer_node(ObOperator *cur,
PHY_BLOCK_SAMPLE_SCAN == first_child->get_spec().type_ ||
PHY_ROW_SAMPLE_SCAN == first_child->get_spec().type_) {
child = first_child;
} else if (get_gi_task_consumer_node(first_child, child)) {
} else if (OB_FAIL(get_gi_task_consumer_node(first_child, child))) {
LOG_WARN("failed to get gi task consumer node", K(ret));
}
if (OB_SUCC(ret) && OB_ISNULL(child)) {

View File

@ -77,6 +77,7 @@ int ObPxTaskProcess::check_inner_stat()
ret = OB_ERR_UNEXPECTED;
LOG_WARN("phy plan ctx is NULL", K(ret), K(exec_ctx));
} else if (OB_ISNULL(arg_.get_sqc_handler())) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("sqc hanlder is null", K(ret));
} else {
// 为了尽快确定任务超时,启动 task 的超时时间很短,10ms 左右

View File

@ -233,6 +233,7 @@ void PxWorkerFunctor::operator ()()
ObThreadLogLevelUtils::clear();
}
} else if (OB_ISNULL(sqc_handler)) {
ret = OB_ERR_UNEXPECTED;
LOG_ERROR("Unexpected null sqc handler", K(sqc_handler));
} else {
LOG_WARN("already interrupted");