]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/rgw: test_datalog_autotrim filters out new entries 40673/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:01:15 +0000 (15:01 +0200)
commitc04f66bd75524cdfbacc2b58bd4435b19052e02e
treec1edf8b93ce1318a519a5778b9fc8ba36be922c3
parentd216585e22bc8157093a922a6a86f4b8eea2f9d3
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