Repository navigation
crimson/os/seastore: refactor fixed-kv-btree - #61347
Conversation
7751ffa to
edb6535
Compare
d748906 to
4ab2c46
Compare
|
@cyx1231st Hi, yingxin, I think this PR is good for review, please take a look, thanks:-) |
|
jenkins test make check arm64 |
cyx1231st
left a comment
There was a problem hiding this comment.
Still looking, sharing some thoughts.
cyx1231st
left a comment
There was a problem hiding this comment.
I'll wait for the next version to continue the reviews.
|
If there are anything fixed during the refactors, can it be splitted before them, so the refactors can be pure? Such as #61347 (comment). |
4ab2c46 to
3c79f44
Compare
|
@cyx1231st Hi, yingxin, I've just addressed all the comments, please take a look again, thanks:-) |
There was a problem hiding this comment.
(suggestion only, we can keep it if there is no better way atm)
Ideally, down_cast() should be avoided because it breaks the abstractions (or in another word, this is the result that the current abstraction isn't sufficient), and the free-style relying on concrete templates isn't friendly to reuse the parent-child-ptr solution for the same reason.
There was a problem hiding this comment.
Yeah, I agree.
But it looks to me that this may be inevitable, since we're using crtp to add additional functions to the existing extent types.
After a second thought, maybe we don't have to take the crtp way. Maybe the polymorphism way is better. I'll give it a try.
There was a problem hiding this comment.
@cyx1231st I've just tried to switch to the polymorphism way. It turns out that we may have to define a lot of same-function-but-different-named virtual methods. For example, we may have to define an alias for CachedExtent::is_mutation_pending(), so that we can use it in the linked tree node level.
I think maybe we can take the crtp way for now, and switch to the polymorphism way when necessary in the future. What do you think?
95bfa3d to
0af45e4
Compare
|
jenkins test api |
0af45e4 to
052d706
Compare
Linked tree nodes encapsulate all logics about linking parent child nodes with in-memory pointers. There are three kinds of roles for linked tree nodes: 1. ParentNode: any nodes that have child nodes should be of this role, for example: (LBA/Backref)InternalNode, LBALeafNode. 2. ChildNode: any nodes that have parent nodes should be of this role, for example: (LBA/Backref)(Internal/Leaf)Node. 3. RootNode: any nodes that may be the root of a tree should be of this role. Signed-off-by: Xuehan Xu <[email protected]>
Signed-off-by: Xuehan Xu <[email protected]>
052d706 to
a5855fc
Compare
from FixedKVNodes FixedKV(Internal/Leaf)Node inherit parent<->child pointer functions from linked tree nodes instead. Signed-off-by: Xuehan Xu <[email protected]>
a5855fc to
51ea374
Compare
|
Fixing regressions. |
ddab2d3 to
e789693
Compare
|
Regressions resolved. |
update parameters BackrefLeafNodes don't any more. Signed-off-by: Xuehan Xu <[email protected]>
e789693 to
90101c7
Compare
|
jenkins test api |
^@xxhdx1985126 Looks like related because it doesn't exist before. That assert is failed because I will schedule more repeated tests to double confirm. |
Looking into it. |
|
The failure ratio looks < 1/10. I'm looking at whether it exists in the main branch. |
|
fyi, baseline seems good: https://pulpito.ceph.com/yingxin-2025-02-17_02:16:40-crimson-rados-ci-yingxin-seastore-refactor-lbs-baseline-distro-default-smithi/ let me know if need more tests. |
|
jenkins test api |
3 similar comments
|
jenkins test api |
|
jenkins test api |
|
jenkins test api |
This PR involves two modifications to the current implementation of the fixed-kv-btree:
This PR is based on #61261
Signed-off-by: Xuehan Xu [email protected]
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windowsjenkins test rook e2e