You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Do not block scheduler if there are stages ready for scheduling (#26268)
## Description
Do not block query scheduler when there is a stage ready to be
scheduled.
## Motivation and Context
Consider a query with two stages, Stage 1 and Stage 2.
Before this change when one for the stages is blocked the scheduler will
block and wait for it to unblock preventing the second stage from
scheduling.
## Impact
Reduced scheduling delays in certain cases
## Test Plan
Tested with a simple INSERT INTO query with scaled writers enabled.
ScaledWriters scheduler has a fixed 200ms delay. Delay in ScaledWriter
scheduler was causing slow split scheduling for TableScan stage.
## Contributor checklist
- [x] Please make sure your submission complies with our [contributing
guide](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md),
in particular [code
style](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md#code-style)
and [commit
standards](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md#commit-standards).
- [x] PR description addresses the issue accurately and concisely. If
the change is non-trivial, a GitHub Issue is referenced.
- [x] Documented new properties (with its default value), SQL syntax,
functions, or other functionality.
- [x] If release notes are required, they follow the [release notes
guidelines](https://github.com/prestodb/presto/wiki/Release-Notes-Guidelines).
- [x] Adequate tests were added if applicable.
- [x] CI passed.
## Release Notes
Please follow [release notes
guidelines](https://github.com/prestodb/presto/wiki/Release-Notes-Guidelines)
and fill in the release notes below.
```
== NO RELEASE NOTE ==
```
0 commit comments