]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/rgw: Add incremental test of bucket sync run
authorAdam C. Emerson <aemerson@redhat.com>
Wed, 11 May 2022 22:39:08 +0000 (18:39 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 27 May 2022 19:47:34 +0000 (15:47 -0400)
commitf59a3580ee2283be9bc6f00fcb9496f1f35667ea
tree7cd8d33ec77966efb48cd591046dacf52788a1a0
parent79932fcc19ed80412ab0f3ed1e20cfbec3d37783
test/rgw: Add incremental test of bucket sync run

This tests for iterating properly over the generations.

1. Create a bucket and write some objects to it. Wait for sync to
   complete. This ensures we are in Incremental.
2. Turn off the secondary `radosgw`.
3. Manually reshard. Then continue writing objects and resharding.
4. Choose objects so that each generation has objects in many but not
   all shards.
5. After building up several generations, run `bucket sync run` on the
   secondary.
6. Verify that all objects on the primary are on the secondary.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/test/rgw/rgw_multi/tests.py