]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/rgw: test_datalog_autotrim filters out new entries 40674/head
authorCasey Bodley <cbodley@redhat.com>
Mon, 15 Jun 2020 15:45:11 +0000 (11:45 -0400)
committerNathan Cutler <ncutler@suse.com>
Thu, 8 Apr 2021 13:02:02 +0000 (15:02 +0200)
commitf7edb1baae377b7ef5b3267b48963f73b8a87993
treec5f24e63085a4ba32c0a1e05f72e994422a8218e
parenta3bb71c89d324b13294707f66d71b7b74886e1b6
test/rgw: test_datalog_autotrim filters out new entries

if other sync activity is racing with test_datalog_autotrim, it can
create new datalog entries after the 'datalog autotrim' command runs

instead of asserting that the datalog is empty after trim, assert that
any entries have a marker larger than the max-marker reported by
'datalog status' before the trim

Fixes: https://tracker.ceph.com/issues/45626
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit abd08f1843642e318d74dfadb0f9cf1f6b86d827)
src/test/rgw/rgw_multi/tests.py