remote execute hang because of plan diff with ctrl ser and runner ser

This commit is contained in:
obdev
2021-07-14 10:24:13 +08:00
committed by wangzelin.wzl
parent 42a6e1268b
commit 131c2cf658
12 changed files with 78 additions and 37 deletions

View File

@ -56,8 +56,15 @@ int ObRemoteScheduler::schedule(ObExecContext& ctx, ObPhysicalPlan* phy_plan)
LOG_WARN("execute with sql failed", K(ret));
}
}
} else if (OB_FAIL(execute_with_plan(ctx, phy_plan))) {
LOG_WARN("execute with plan failed", K(ret));
} else {
if (NULL != phy_plan->get_root_op_spec()) {
// Remote execution under the static engine does not support sending plans
// so here is a fallback to the old engine
ret = STATIC_ENG_NOT_IMPLEMENT;
LOG_WARN("static engine not support remote execute with send plan, will retry", K(ret));
} else if (OB_FAIL(execute_with_plan(ctx, phy_plan))) {
LOG_WARN("execute with plan failed", K(ret));
}
}
return ret;
}