Commit d6f5c4e
Add artificial delay for deterministic race condition reproduction
Add Thread.sleep(50) inside the async handler's Future to widen the race
window between Future continuation cleanup and span completion. Without
the .recover fix, this delay causes the failed-Future trace-drop to
trigger reliably. With .recover, the delay is harmless because the
Future always succeeds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent c5a177c commit d6f5c4e
1 file changed
Lines changed: 4 additions & 0 deletions
File tree
- dd-java-agent/instrumentation/pekko/pekko-http-1.0/src/baseTest/scala
dd-java-agent/instrumentation/pekko/pekko-http-1.0/src/baseTest/scala/PekkoHttpTestWebServer.scala
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
277 | 281 | | |
278 | 282 | | |
279 | 283 | | |
| |||
0 commit comments