Commit 07319d9
committed
test/librados/aio_cxx: skip EIO boundary assertion when no in-flight I/Os
In the PoolEIOFlag test we now track whether any async writes were still
in flight at the moment we flipped the pool’s `eio=true` flag using an
atomic `missed_eio` flag set inside the helper thread. If we never
actually overlapped any in-flight AIOs (we completed all aio successfully)
with the flag flip, we `GTEST_SKIP()` the final `max_success+1 == min_failed`
boundary assertion, avoiding spurious failures when all writes complete
before EIO takes effect.
Fixes: https://tracker.ceph.com/issues/70852
Signed-off-by: Nitzan Mordechai <[email protected]>1 parent 58b940a commit 07319d9
1 file changed
+26
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
2347 | 2349 | | |
2348 | 2350 | | |
2349 | 2351 | | |
2350 | | - | |
| 2352 | + | |
2351 | 2353 | | |
2352 | 2354 | | |
2353 | 2355 | | |
| |||
2369 | 2371 | | |
2370 | 2372 | | |
2371 | 2373 | | |
| 2374 | + | |
2372 | 2375 | | |
2373 | | - | |
| 2376 | + | |
2374 | 2377 | | |
2375 | 2378 | | |
2376 | 2379 | | |
| |||
2385 | 2388 | | |
2386 | 2389 | | |
2387 | 2390 | | |
2388 | | - | |
2389 | | - | |
2390 | | - | |
2391 | | - | |
2392 | | - | |
2393 | | - | |
2394 | | - | |
2395 | | - | |
2396 | | - | |
2397 | | - | |
2398 | | - | |
2399 | | - | |
2400 | | - | |
| 2391 | + | |
| 2392 | + | |
| 2393 | + | |
| 2394 | + | |
| 2395 | + | |
| 2396 | + | |
| 2397 | + | |
| 2398 | + | |
| 2399 | + | |
| 2400 | + | |
| 2401 | + | |
| 2402 | + | |
| 2403 | + | |
| 2404 | + | |
| 2405 | + | |
| 2406 | + | |
| 2407 | + | |
2401 | 2408 | | |
2402 | 2409 | | |
2403 | 2410 | | |
| |||
2418 | 2425 | | |
2419 | 2426 | | |
2420 | 2427 | | |
| 2428 | + | |
| 2429 | + | |
| 2430 | + | |
| 2431 | + | |
2421 | 2432 | | |
2422 | 2433 | | |
2423 | 2434 | | |
| |||
0 commit comments