]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/librbd: avoid caching effects TestGroup.add_snapshot{,PP} 58206/head
authorIlya Dryomov <idryomov@gmail.com>
Wed, 26 Jun 2024 16:24:30 +0000 (18:24 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 28 Jun 2024 11:49:00 +0000 (13:49 +0200)
commit91cb5326d744d8cb946df5421e55dc4f4c3720f5
treec1c6c18fb6e2c3acf52a1a881bf401f9bcb846e9
parent7a490856e7dfda9419151e1588e758c0215bb944
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