Bug #74504
closedPGSplits/Seastore::collection_manager: Assertion `inserted' failed.
0%
Description
Found while testing pg splitting thrash tests on Seastore:
DEBUG 2026-01-22 08:01:17,152 [shard 3:main] seastore - CollectionNode:create DEBUG 2026-01-22 08:01:17,152 [shard 0:main] seastore_tm - 0x7cdbf37ca480 trans.12314 TransactionManager::read_pin: got direct is_clone=false CachedExtent(addr=0x7ccbf46dd000, type=OMAP_INNER, trans=12314, version=0, dirty_from=JOURNAL_SEQ_NULL, modify_time=tp(NULL), paddr=paddr<Dev(RR),0x8000>, prior_paddr=nullopt, length=0x2000, loaded=0x2000, state=INITIAL_WRITE_PENDING, last_committed_crc=0, refcount=3, user_hint=Hint(HOT), rewrite_gen=GEN_INL, pending_io=N/A, laddr=L0xff04180000001926, seen=1, size=2, depth=2, is_root=1, begin=, end=ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ) DEBUG 2026-01-22 08:01:17,152 [shard 0:main] seastore_tm - 0x7cdbf4561480 trans.12337 TransactionManager::rewrite_extent: target=GEN(3) tp(2026-01-22 07:59:51) -- CachedExtent(addr=0x7cbbf6252780, type=OBJECT_DATA_BLOCK, trans=0, version=0, dirty_from=JOURNAL_SEQ_NULL, modify_time=tp(NULL), paddr=paddr<Seg[Dev(0x0),0x15],0x38a3000>, prior_paddr=nullopt, length=0x2000, loaded=0x2000, state=CLEAN, last_committed_crc=1188451079, refcount=6, user_hint=Hint(NULL), rewrite_gen=GEN_NULL, pending_io=N/A, laddr=L0xff04333473c00006, seen=1) ... DEBUG 2026-01-22 08:01:17,152 [shard 3:main] seastore_cache - 0x7cdbf4477880 trans.10688 Cache::duplicate_for_write: CachedExtent(addr=0x7cbbf5a20280, type=COLL_BLOCK, trans=0, version=22, dirty_from=jseq(sseq(3), paddr<Seg[Dev(0x0),0x15],0x2420000>), modify_time=tp(2026-01-22 08:01:15), paddr=paddr<Seg[Dev(0x0),0x15],0x1ebc000>, prior_paddr=nullopt, length=0x1000, loaded=0x1000, state=DIRTY, last_committed_crc=3782522386, refcount=6, user_hint=Hint(NULL), rewrite_gen=GEN_NULL, pending_io=N/A, laddr=L0x5, seen=1) -> CachedExtent(addr=0x7cbbf682f680, type=COLL_BLOCK, trans=10688, version=23, dirty_from=jseq(sseq(3), paddr<Seg[Dev(0x0),0x15],0x2420000>), modify_time=tp(NULL), paddr=paddr<Seg[Dev(0x0),0x15],0x1ebc000>, prior_paddr=nullopt, length=0x1000, loaded=0x1000, state=MUTATION_PENDING, last_committed_crc=3782522386, refcount=2, user_hint=Hint(NULL), rewrite_gen=GEN_NULL, pending_io=N/A, laddr=L0x5, seen=1) DEBUG 2026-01-22 08:01:17,152 [shard 3:main] seastore - CollectionNode:create DEBUG 2026-01-22 08:01:17,152 [shard 0:main] seastore_cache - 0x7cdbf4561480 trans.12337 Cache::retire_extent: retire extent -- CachedExtent(addr=0x7cbbf6252780, type=OBJECT_DATA_BLOCK, trans=0, version=0, dirty_from=JOURNAL_SEQ_NULL, modify_time=tp(2026-01-22 07:59:51), paddr=paddr<Seg[Dev(0x0),0x15],0x38a3000>, prior_paddr=nullopt, length=0x2000, loaded=0x2000, state=CLEAN, last_committed_crc=1188451079, refcount=5, user_hint=Hint(REWRITE), rewrite_gen=GEN(3), pending_io=N/A, laddr=L0xff04333473c00006, seen=1) DEBUG 2026-01-22 08:01:17,152 [shard 3:main] seastore - CollectionNode::create 4.16_head 5 CachedExtent(addr=0x7cbbf682f680, type=COLL_BLOCK, trans=10688, version=23, dirty_from=jseq(sseq(3), paddr<Seg[Dev(0x0),0x15],0x2420000>), modify_time=tp(NULL), paddr=paddr<Seg[Dev(0x0),0x15],0x1ebc000>, prior_paddr=nullopt, length=0x1000, loaded=0x1000, state=MUTATION_PENDING, last_committed_crc=3782522386, refcount=2, user_hint=Hint(NULL), rewrite_gen=GEN_NULL, pending_io=N/A, laddr=L0x5, seen=1) DEBUG 2026-01-22 08:01:17,152 [shard 0:main] seastore_cache - 0x7cdbf4561480 trans.12337 Cache::alloc_new_data_extents_by_type: allocate OBJECT_DATA_BLOCK 0x2000B, hint=Hint(REWRITE), gen=GEN(3) ceph-osd: /home/jenkins-build/build/workspace/ceph-dev-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos9/DIST/centos9/MACHINE_SIZE/gigantic/release/20.3.0-4750-g0a5a6195/rpm/el9/BUILD/ceph-20.3.0-4750-g0a5a6195/src/crimson/os/seastore/collection_manager/collection_flat_node.cc:69: crimson::os::seastore::collection_manager::CollectionNode::create_ret crimson::os::seastore::collection_manager::CollectionNode::create(crimson::os::seastore::collection_manager::coll_context_t, coll_t, unsigned int): Assertion `inserted' failed. DEBUG 2026-01-22 08:01:17,152 [shard 0:main] seastore_epm - 0x7cdbf4561480 trans.12337 ExtentPlacementManager::alloc_new_data_extents: allocated OBJECT_DATA_BLOCK 0x2000B extent at paddr<Dev(DELAYED),0x0>, hint=Hint(REWRITE), gen=3
MB Updated by Matan Breizman 10 months ago
- Subject changed from Seastore::collection_manager: Assertion `inserted' failed. to PGSplits/Seastore::collection_manager: Assertion `inserted' failed.
- Category set to Seastore
AM Updated by Aishwarya Mathuria 10 months ago
As of PR https://github.com/ceph/ceph/pull/65814, the crimson_allow_pg_split flag will be set to false in radosbench and high-concurrency workloads to stabilize the QA suite.
To reproduce this issue using these workloads, we must remove the crimson_allow_pg_split flag from the workload YAML.
AM Updated by Aishwarya Mathuria 10 months ago
Taking a look at the logs, this assert is caused due to a child PG getting created twice:
DEBUG 2026-01-22 08:01:15,332 [shard 3:main] osd - PGAdvanceMap::split_pg: 4.16 map epoch: 95 DEBUG 2026-01-22 08:01:15,332 [shard 3:main] seastore - SeaStoreS::create_new_collection: cid=4.16_head DEBUG 2026-01-22 08:01:15,366 [shard 3:main] seastore - 0x7cdbf44a9480 trans.10683 SeaStoreS::_do_transaction_step: op MKCOLL, cid=4.16_head ... DEBUG 2026-01-22 08:01:15,767 [shard 3:main] osd - PGAdvanceMap::split_pg: 4.16 map epoch: 96 DEBUG 2026-01-22 08:01:15,768 [shard 3:main] seastore - SeaStoreS::create_new_collection: cid=4.16_head DEBUG 2026-01-22 08:01:17,151 [shard 3:main] seastore - 0x7cdbf4477880 trans.10688 SeaStoreS::_do_transaction_step: op MKCOLL, cid=4.16_head ...
I'm looking into why this might be happening.
AM Updated by Aishwarya Mathuria 10 months ago
- Assignee set to Aishwarya Mathuria
AM Updated by Aishwarya Mathuria 10 months ago
Based on the logs,
Epoch 95 Iteration:
old_map = Map 94 (pg_num: 16)
next_map = Map 95 (pg_num: 26)
16 < 26 is true. Split is triggered.
Epoch 96 Iteration:
old_map = Still Map 94 (because *from hasn't changed https://github.com/ceph/ceph/blob/main/src/crimson/osd/osd_operations/pg_advance_map.cc#L100)
next_map = Map 96 (pg_num: 26)
16 < 26 is still true. Split is triggered again.
AM Updated by Aishwarya Mathuria 10 months ago
- Pull request ID set to 67225
AM Updated by Aishwarya Mathuria 10 months ago
- Status changed from New to In Progress
AM Updated by Aishwarya Mathuria 10 months ago
- Status changed from In Progress to Fix Under Review
CL Updated by chunmei liu 9 months ago
UB Updated by Upkeep Bot 9 months ago
- Status changed from Fix Under Review to Resolved
- Merge Commit set to 396b3b672ab3e80a2a01120f5f599ece478f34dc
- Fixed In set to v20.3.0-5813-g396b3b672a
- Upkeep Timestamp set to 2026-03-04T13:36:36+00:00
MB Updated by Matan Breizman 8 months ago
- Related to Bug #74982: SeaStore: abort on ENOENT during pg delete after split under pggrow thrash added
UB Updated by Upkeep Bot about 1 month ago
- Released In set to v21.2.0~1101
- Upkeep Timestamp changed from 2026-03-04T13:36:36+00:00 to 2026-10-24T01:43:26+00:00