From: Xuehan Xu Date: Sat, 9 May 2026 02:15:24 +0000 (+0800) Subject: test/crimson/seastore/test_transaction_manager: the scatter_allocation case shouldn... X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c48848ba9fa42b73dc37fc452de7ef572bf8f179;p=ceph.git test/crimson/seastore/test_transaction_manager: the scatter_allocation case shouldn't submit the trans In scatter_allocation, an extent is split into several small ones, and the last allocation is supposed to fail, in which case, the small extents that belong to the same allocation wouldn't be attached to the parent lba leaf node. Sumitting the transaction would trigger assertions, and is not consistent with the behavior of nornal crimson OSDs. Signed-off-by: Xuehan Xu --- diff --git a/src/test/crimson/seastore/test_transaction_manager.cc b/src/test/crimson/seastore/test_transaction_manager.cc index e34d003a3e07..71edd935a28b 100644 --- a/src/test/crimson/seastore/test_transaction_manager.cc +++ b/src/test/crimson/seastore/test_transaction_manager.cc @@ -1904,13 +1904,12 @@ TEST_P(tm_random_block_device_test_t, scatter_allocation) epm->prefill_fragmented_devices(); auto t = create_transaction(); for (int i = 0; i < 1958; i++) { + logger().info("scatter_allocation: {}", i); auto extents = alloc_extents(t, (ADDR + i * 16384).checked_to_laddr(), 16384, 'a'); } alloc_extents_deemed_fail(t, (ADDR + 1958 * 16384).checked_to_laddr(), 16384, 'a'); check_mappings(t); check(); - submit_transaction(std::move(t)); - check(); }); }