Skip to content

Commit 88a7233

Browse files
committed
test/crimson/seastore/test_omap_manager: add a UT to reproduce issue 72303
Signed-off-by: Chanyoung Park <[email protected]>
1 parent e8f8879 commit 88a7233

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/test/crimson/seastore/test_omap_manager.cc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,28 @@ TEST_P(omap_manager_test_t, full_range_list)
816816
});
817817
}
818818

819+
TEST_P(omap_manager_test_t, increasing_key_size)
820+
{
821+
// reproduces https://tracker.ceph.com/issues/72303
822+
run_async([this] {
823+
omap_root_t omap_root = initialize();
824+
825+
for (int i = 0; i < 1000; i++) {
826+
auto t = create_mutate_transaction();
827+
std::string key(i, 'A');
828+
set_key(omap_root, *t, key, rand_buffer(1024));
829+
submit_transaction(std::move(t));
830+
}
831+
check_mappings(omap_root);
832+
833+
while (test_omap_mappings.size() > 0) {
834+
auto t = create_mutate_transaction();
835+
rm_key(omap_root, *t, test_omap_mappings.begin()->first);
836+
submit_transaction(std::move(t));
837+
}
838+
});
839+
}
840+
819841
INSTANTIATE_TEST_SUITE_P(
820842
omap_manager_test,
821843
omap_manager_test_t,

0 commit comments

Comments
 (0)