]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/librbd: avoid caching effects TestGroup.add_snapshot{,PP} 58300/head
authorIlya Dryomov <idryomov@gmail.com>
Wed, 26 Jun 2024 16:24:30 +0000 (18:24 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 27 Jun 2024 08:02:00 +0000 (10:02 +0200)
commita7e314c2ef899406eb3ade6c5f862622ce1e698f
tree705cb36009d4360f2cfff767963644f8336c3b4b
parent4c69370f6b0e4c04e77fde67a9c199af6ea13649
test/librbd: avoid caching effects TestGroup.add_snapshot{,PP}

After rollback started being tested in commit b3977c53c930
("test/librbd: make rollback in TestGroup.add_snapshot{,PP}
meaningful"), these tests can fail on comparing post-rollback
data to expected data if run with exclusive lock disabled.
This doesn't occur with exclusive lock enabled because the RBD
cache gets invalidated implicitly before releasing the lock.

While at it, pass LIBRADOS_OP_FLAG_FADVISE_FUA to avoid relying
on any cache settings that happen to be in effect.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/test/librbd/test_Groups.cc