Commit f013d38
committed
fix: re-offer coalesced wakeup requests after in-flight dispatch completes
When a second provider wakeup for the same threadId was dequeued while an
earlier dispatchWakeup was still in flight, the dispatcher would log
'provider-wakeup.coalesced' and permanently discard the request. If the
in-flight dispatch then failed (quiescence timeout, thread-stayed-busy,
or dispatch-failed), that coalesced wakeup was lost with no retry path.
Fix: store coalesced requests in a per-thread pending map. When the
in-flight dispatch finishes (whether it succeeds or fails), re-offer any
pending request back to the relay queue so it gets another dispatch
attempt.1 parent b1a0017 commit f013d38
1 file changed
Lines changed: 31 additions & 8 deletions
Lines changed: 31 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
175 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
176 | 177 | | |
| 178 | + | |
177 | 179 | | |
178 | 180 | | |
179 | 181 | | |
| |||
192 | 194 | | |
193 | 195 | | |
194 | 196 | | |
195 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
196 | 211 | | |
197 | 212 | | |
198 | 213 | | |
199 | 214 | | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
205 | 228 | | |
206 | 229 | | |
207 | 230 | | |
| |||
0 commit comments