Commit e78e9ec
[Refactor] Drop redundant AgentTaskQueue cleanup from the lake alter-job handoff resets
The demotion drain stage (abandonInFlightAgentTasks) empties the whole AgentTaskQueue
before AlterHandler.onStopped() runs the per-job resets, and the activation-side sweep
runs before any daemon can enqueue - so the removeBatchTask / per-task removeTask calls
in the lake jobs' resetTransientStateForHandoff() were no-ops on every reachable path.
Remove them and state the invariant in the comments; the essential part (fresh/nulled
batch so the re-run re-sends or re-dispatches) is unchanged.
Signed-off-by: gengjun-git <gengjun@starrocks.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent ba062ef commit e78e9ec
3 files changed
Lines changed: 11 additions & 15 deletions
File tree
- fe/fe-core/src/main/java/com/starrocks/alter
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
137 | | - | |
138 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
Lines changed: 4 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
142 | 138 | | |
143 | 139 | | |
144 | 140 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
185 | | - | |
186 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
187 | 188 | | |
188 | | - | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| |||
0 commit comments