Commit a45a521
authored
Fix flaky
`ConcurrentThreadsGetDistinctStreams` relied on a latch to keep its two threads overlapping, but the latch only guarantees that both threads have started, not that both have acquired a stream pool.
Each thread now takes its pool before waiting on the latch, so both pools are live at the same time.
Authors:
- Vukasin Milovanovic (https://github.com/vuule)
Approvers:
- Muhammad Haseeb (https://github.com/mhaseeb123)
- David Wendt (https://github.com/davidwendt)
- MithunR (https://github.com/mythrocks)
URL: #23820StreamPoolTest.ConcurrentThreadsGetDistinctStreams (#23820)1 parent 8a4d125 commit a45a521
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
45 | 46 | | |
| 47 | + | |
| 48 | + | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
| |||
0 commit comments