Commit f2661f4
[fast-client] De-flake testRequestBasedMetadataOnDemandRefresh
The test dispatched start() onto the shared ForkJoinPool.commonPool() via
CompletableFuture.runAsync. start() blocks indefinitely on
isReadyLatch.await()
in this all-failures scenario, and under CI load the common-pool task could
sit
queued past the 3s verification timeout, intermittently failing the first
verify(updateCache(false)).
Run start() on a dedicated daemon thread so it begins promptly regardless of
pool load, and deterministically tear it down (interrupt + join + assert it
exited) instead of leaking a blocked thread until JVM teardown.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent a9deece commit f2661f4
1 file changed
Lines changed: 19 additions & 8 deletions
File tree
- clients/venice-client/src/test/java/com/linkedin/venice/fastclient/meta
Lines changed: 19 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
427 | | - | |
428 | | - | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
429 | 434 | | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
436 | 447 | | |
437 | 448 | | |
438 | 449 | | |
| |||
0 commit comments