]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/librados/aio_cxx: skip EIO boundary assertion when no in-flight I/Os
authorNitzan Mordechai <nmordech@redhat.com>
Wed, 7 May 2025 13:37:34 +0000 (13:37 +0000)
committerNitzan Mordechai <nmordech@redhat.com>
Sun, 29 Jun 2025 06:24:05 +0000 (06:24 +0000)
commitdb4b62b4622b44f4bedc757bdf401dff6aa0f880
treefae015222cf33882b1ab0b44327b19399ac7fe40
parentcd3930e7cbfd6b660edd74688a10748798bf0e74
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 <nmordech@redhat.com>
(cherry picked from commit 07319d9a37ef70b6422e26eba8a251f711db2c6b)
src/test/librados/aio_cxx.cc