Commit 2c302ba
committed
Make logic for nonSpeculativeTaskCount more explicit
Previously there was a brittle assumption that addOrUpdate is called
with just once for non-speculative task and for speculative task we get
exactly two calls
- add with speculative priority and with
- update with non-speculative priority
This PR makes logic more explicit and relaxes assumptions1 parent 1f10771 commit 2c302ba
File tree
2 files changed
+29
-6
lines changed- core/trino-main/src/main/java/io/trino/execution
- resourcegroups
- scheduler
2 files changed
+29
-6
lines changedLines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
92 | 102 | | |
93 | 103 | | |
94 | 104 | | |
| |||
Lines changed: 19 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2049 | 2049 | | |
2050 | 2050 | | |
2051 | 2051 | | |
2052 | | - | |
2053 | | - | |
| 2052 | + | |
| 2053 | + | |
2054 | 2054 | | |
2055 | 2055 | | |
2056 | | - | |
2057 | | - | |
| 2056 | + | |
2058 | 2057 | | |
2059 | 2058 | | |
2060 | 2059 | | |
2061 | 2060 | | |
2062 | | - | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
2063 | 2069 | | |
2064 | 2070 | | |
2065 | | - | |
| 2071 | + | |
| 2072 | + | |
2066 | 2073 | | |
2067 | 2074 | | |
| 2075 | + | |
| 2076 | + | |
| 2077 | + | |
| 2078 | + | |
| 2079 | + | |
| 2080 | + | |
2068 | 2081 | | |
2069 | 2082 | | |
2070 | 2083 | | |
| |||
0 commit comments