]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/librbd: avoid caching effects TestGroup.add_snapshot{,PP} 58208/head
authorIlya Dryomov <idryomov@gmail.com>
Wed, 26 Jun 2024 16:24:30 +0000 (18:24 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 12 Jul 2024 21:17:54 +0000 (23:17 +0200)
commit0fd5a687a4236165b023a4014e16f69415beebd4
treed25bb7dc6ccbb555fc4063612bccf80a6222c2d6
parent90748ec6f7c70d1a1e58adb19da5f54fe9552df3
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