Skip to content

Commit

Permalink
NE
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqiang-hhhh committed Feb 13, 2025
1 parent 7be7a49 commit bb43252
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion be/src/vec/exec/scan/scanner_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -534,10 +534,11 @@ Status ScannerContext::_schedule_scan_task(std::shared_ptr<ScanTask> current_sca
// This DCHECK is necessary.
// We need to make sure each scan operator could have at least 1 scan tasks.
// Or this scan operator will not be re-scheduled.
if (!_pending_scanners.empty() && _num_scheduled_scanners == 0) {
if (!_pending_scanners.empty() && _num_scheduled_scanners == 0 && _tasks_queue.empty()) {
throw doris::Exception(ErrorCode::INTERNAL_ERROR, "Scanner schduler logical error.");
}
#endif

return Status::OK();
}

Expand Down

0 comments on commit bb43252

Please sign in to comment.