Skip to content

Commit

Permalink
[bugfix](core) be will core when coordinator callback (#19497)
Browse files Browse the repository at this point in the history
Co-authored-by: yiguolei <[email protected]>
  • Loading branch information
yiguolei and Doris-Extras authored May 10, 2023
1 parent 9ffdbae commit 69ebb90
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions be/src/service/internal_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,13 @@ void PInternalServiceImpl::tablet_writer_cancel(google::protobuf::RpcController*

Status PInternalServiceImpl::_exec_plan_fragment(const std::string& ser_request,
PFragmentRequestVersion version, bool compact) {
// Sometimes the BE do not receive the first heartbeat message and it receives request from FE
// If BE execute this fragment, it will core when it wants to get some property from master info.
if (ExecEnv::GetInstance()->master_info() == nullptr) {
return Status::InternalError(
"Have not receive the first heartbeat message from master, not ready to provide "
"service");
}
if (version == PFragmentRequestVersion::VERSION_1) {
// VERSION_1 should be removed in v1.2
TExecPlanFragmentParams t_request;
Expand Down

0 comments on commit 69ebb90

Please sign in to comment.