From: Xuehan Xu Date: Wed, 23 Jul 2025 07:22:08 +0000 (+0800) Subject: test/crimson/seastore/test_seastore: add UT for OP_SPLIT_COLLECTION2 X-Git-Tag: testing/wip-vshankar-testing-20250821.112602-debug~31^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=33359682278406c5f746f7a5e3ac862ae863b0b4;p=ceph-ci.git test/crimson/seastore/test_seastore: add UT for OP_SPLIT_COLLECTION2 Signed-off-by: Xuehan Xu --- diff --git a/src/test/crimson/seastore/test_seastore.cc b/src/test/crimson/seastore/test_seastore.cc index bf0d773a897..94cdaff674d 100644 --- a/src/test/crimson/seastore/test_seastore.cc +++ b/src/test/crimson/seastore/test_seastore.cc @@ -700,6 +700,28 @@ TEST_P(seastore_test_t, collection_create_list_remove) }); } +TEST_P(seastore_test_t, collection_split) +{ + run_async([this] { + coll_t test_coll{spg_t{pg_t{1, 0}}}; + { + sharded_seastore->create_new_collection(test_coll).get(); + { + CTransaction t; + t.create_collection(test_coll, 4); + do_transaction(std::move(t)); + } + { + coll_t test_coll2{spg_t{pg_t{17, 0}}}; + sharded_seastore->create_new_collection(test_coll2).get(); + CTransaction t; + t.split_collection(test_coll, 5, 5, test_coll2); + do_transaction(std::move(t)); + } + } + }); +} + TEST_P(seastore_test_t, meta) { run_async([this] { set_meta("key1", "value1");