]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/librados/aio_cxx: skip EIO boundary assertion when no in-flight I/Os 63177/head
authorNitzan Mordechai <nmordech@redhat.com>
Wed, 7 May 2025 13:37:34 +0000 (13:37 +0000)
committerNitzan Mordechai <nmordech@redhat.com>
Thu, 8 May 2025 08:42:16 +0000 (08:42 +0000)
commit07319d9a37ef70b6422e26eba8a251f711db2c6b
treee8023d39e598180019c0ba85dcaee015325a3a17
parent58b940a1f2a76de5b22632e75f6bf68c366ee235
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>
src/test/librados/aio_cxx.cc