]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/librbd: avoid caching effects TestGroup.add_snapshot{,PP} 58207/head
authorIlya Dryomov <idryomov@gmail.com>
Wed, 26 Jun 2024 16:24:30 +0000 (18:24 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 8 Jul 2024 11:54:43 +0000 (13:54 +0200)
commit95838d0e036c783d3529cf26b08e080665c31e6e
treef015518c36678f68d2409d37fb28f3bcc4de6be5
parent1a55d40c61a1f385ba221eb26c43d21dbaec2c95
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>
(cherry picked from commit a7e314c2ef899406eb3ade6c5f862622ce1e698f)
src/test/librbd/test_Groups.cc