Repository navigation
crimson/os/seastore: lba pointer consolidation - #55831
Conversation
I'm working on some other simple cleanups based on the previous comments, will summarize after that. |
|
Regarding to ceph/src/crimson/os/seastore/btree/fixed_kv_node.h Lines 52 to 83 in 639d182 The comment seems insufficient and I'm not sure about how the current implementation is supposed to handle the other cases, for example:
I understand that these features were introduced after the lba-pointer PR, but it doesn't seem that we have discussed about them very carefully. They are passing our unit tests, but the tests may be insufficient in case of transaction conflicts and the potential issues cannot be revealed very easy but possible. |
IIUC, On the other hand, it seems that inplace-rewrite doesn't actually create new extents like other rewriting process, so the pointer links between them and their parents don't need to be touched, which means it's ok no to make their parents pending or modify the pointers in their parents. Am I right? ceph/src/crimson/os/seastore/transaction_manager.cc Lines 557 to 561 in 639d182
|
So it should be correct to replace If that's correct, I'm still wondering why there are many related logic only under the condition |
So does it mean |
Reasonable to me. Hm, probably good to mention this in the comment. |
Ah, it's not true, because the length in the parent entry must be changed at the same time. (Unrelated, but probably it worths to ensure that we don't remap an extent to another extent with the same length) |
Just scanned the code, it seems that almost all of the checks against |
For lba pointers yes, but I think it would be better to distinguish it in the comment, will change it.
|
Is it possible that the parent is initial-pending, and the child is mutation-pending ? (I don't see how it's impossible.) If that's possible, how does the bi-directional parent-child lookup works if there is no parent-child link in this case ? Or does this comment actually inaccurate ? |
Yes, it's possible.
IIRC, at present, the lookup of lba/backref tree is a top-down process and doesn't involve the parent link. On the other hand, the maintenance of the corrent link between initial_pending parent and mutation_pending children works as follows:
In the current In the future, when optimizing the lba mapping updates, like discussed in #55449 (comment), we might need to add copy_sources -> initial_pending nodes links, so that
|
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
Sorry my question above might be confusing. From the standup, if the parent is initial-pending and the child is mutation-pending, their parent/child pointers should be empty, so the referred comment is accurate. |
Summarized in #47749 (comment) to remember. |
1963045 to
4d49ece
Compare
|
Not sure if the latest change is ready refering to the unaddressed comments, let me know if needs review. |
4d49ece to
6eeed2a
Compare
|
@cyx1231st I think this pr is good to take another round of review, please take a look again, thanks:-) |
|
jenkins test api |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
dec0013 to
54a296a
Compare
|
jenkins test api |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
cyx1231st
left a comment
There was a problem hiding this comment.
LGTM except 1 comment above.
must either has a null parent tracker or point to the current leaf node Signed-off-by: Xuehan Xu <[email protected]>
CachedExtent::is_rewrite() Signed-off-by: Xuehan Xu <[email protected]>
Signed-off-by: Xuehan Xu <[email protected]>
Signed-off-by: Xuehan Xu <[email protected]>
CachedExtent::on_replace_prior() Signed-off-by: Xuehan Xu <[email protected]>
considered as mutatione_pending Signed-off-by: Xuehan Xu <[email protected]>
Signed-off-by: Xuehan Xu <[email protected]>
Signed-off-by: Xuehan Xu <[email protected]>
Signed-off-by: Xuehan Xu <[email protected]>
cfbb675 to
bfc2aba
Compare
Done:-) |
|
|
jenkins test make check |
|
jenkins test windows |
1 similar comment
|
jenkins test windows |
@xxhdx1985126 if we spot a similar case, could you please paste the link to the jenkins job, and at me? i'd like to fix it. |
@tchaikov Hi, here's the jenkins job: https://jenkins.ceph.com/job/ceph-pull-requests/135238/consoleFull |
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