Project

General

Profile

Actions

Bug #74504

closed
AM AM

PGSplits/Seastore::collection_manager: Assertion `inserted' failed.

Bug #74504: PGSplits/Seastore::collection_manager: Assertion `inserted' failed.

Added by Aishwarya Mathuria 11 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Category:
Seastore
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v20.3.0-5813-g396b3b672a
Released In:
v21.2.0~1101
Upkeep Timestamp:
2026-10-24T01:43:26+00:00

Description

Found while testing pg splitting thrash tests on Seastore:

https://pulpito.ceph.com/amathuri-2026-01-22_07:30:57-crimson-rados:thrash_pg_grow-main-distro-debug-trial/12203
osd.3:

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

Related issues 1 (0 open — 1 closed)

Related to crimson - Bug #74982: SeaStore: abort on ENOENT during pg delete after split under pggrow thrashDuplicateMyoungwon Oh

Actions

MB Updated by Matan Breizman 10 months ago Actions #2

  • 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 Actions #3

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 Actions #4

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 Actions #5

  • Assignee set to Aishwarya Mathuria

AM Updated by Aishwarya Mathuria 10 months ago Actions #6

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 Actions #7

  • Pull request ID set to 67225

AM Updated by Aishwarya Mathuria 10 months ago Actions #8

  • Status changed from New to In Progress

AM Updated by Aishwarya Mathuria 10 months ago Actions #9

  • Status changed from In Progress to Fix Under Review

UB Updated by Upkeep Bot 9 months ago Actions #11

  • 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 Actions #12

  • 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 Actions #13

  • 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
Actions

Also available in: PDF Atom