forked from trinodb/trino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent query from deadlocking when task output buffer is full
When query is of shape: SourceStage \ PartitionedStage(broadcast output buffer) / \ ProbeStage BuildStage Then it might happen that task output buffer for PartitionedStage gets full blocking upstream stages (ProbeStage and BuildStage). Previously, phased scheduled did not schedule SourceStage in such situation because PartitionedStage was already considered completed. This commit makes PhasedExecutionSchedule#unblockStagesWithFullOutputBuffer check to be run for all stages (including scheduled, but running stages).
- Loading branch information
Showing
2 changed files
with
46 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters