Repository navigation
crimson/os/seastore: introduce with_repeat_trans_intr - #64812
Merged
Matan-B merged 14 commits intoAug 12, 2025
Merged
Conversation
Matan-B
requested review from
athanatos,
liu-chunmei,
myoungwon and
xxhdx1985126
August 4, 2025 11:28
14 tasks
Matan-B
force-pushed
the
wip-matanb-crimson-seastore-trans-intr
branch
from
August 4, 2025 12:10
621f818 to
a545e1c
Compare
xxhdx1985126
approved these changes
Aug 6, 2025
athanatos
approved these changes
Aug 8, 2025
Contributor
Author
|
jenkins test make check arm64 |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
da5e195 added transaction_interruptor but its no longer needed. Revert the relevant changes. Signed-off-by: Matan Breizman <[email protected]>
Instead of decalring base_ertr and base_iertr in every file or
class that use them -
* Move base_ertr decleration to the common seastore_types header.
Note: the price for that is including errorator in seastore_types
though this seems reasonable considering the benefits.
* Move base_iertr to transaction_interruptor where trans_iertr
is defined.
Signed-off-by: Matan Breizman <[email protected]>
Use the common declarations instead Signed-off-by: Matan Breizman <[email protected]>
Signed-off-by: Matan Breizman <[email protected]>
Signed-off-by: Matan Breizman <[email protected]>
Matan-B
force-pushed
the
wip-matanb-crimson-seastore-trans-intr
branch
from
August 10, 2025 10:56
a545e1c to
bf1d6c6
Compare
Signed-off-by: Matan Breizman <[email protected]>
Signed-off-by: Matan Breizman <[email protected]>
Signed-off-by: Matan Breizman <[email protected]>
transaction_interruptor includes transaction and vice verca. With the previous commits in this PR, we can not drop transaction from including transaction_interruptor. * move interrupt_cond_t to transaction_interruptor. Signed-off-by: Matan Breizman <[email protected]>
With the new design, only transaction_interruptor would include transaction in order to use its methods (is_conflicted and future commits) Signed-off-by: Matan Breizman <[email protected]>
Seems like to logic is moved here: ``` last_commit = start_seq; apply_backref_byseq(t.move_backref_entries(), start_seq); commit_backref_entries(std::move(backref_entries), start_seq); ``` Signed-off-by: Matan Breizman <[email protected]>
Most of with_trans_intr use repeat_eagain so it makes sense to introduce this wrapper and audit exisitng users (future PR). Note: each repeated iteration should use a fresh txn if we failed in-flight. Signed-off-by: Matan Breizman <[email protected]>
Matan-B
force-pushed
the
wip-matanb-crimson-seastore-trans-intr
branch
from
August 10, 2025 11:42
bf1d6c6 to
22ad727
Compare
Signed-off-by: Matan Breizman <[email protected]>
* txn is now created only once and not in each repeated iteration as before, with_repeat_trans_intr will reset the txn if needed. * in order for us to return a seastar::future, we would have to handle each and every errorator. Instead, change the return value to errorator and let the caller handle the error. * The lambda which is passed to with_trans_intr returns mkfs_iertr since this is an extended version of base_iertr. Introduce a mkfs_ertr for the reason above. Future commits would unify the new mkfs_ertr with seastore_mkfs_ertr. Signed-off-by: Matan Breizman <[email protected]>
Contributor
Author
|
Testing https://shaman.ceph.com/builds/ceph/wip-matanb-crimson-seastore-trans-intr |
14 tasks
Contributor
Author
|
jenkins test api |
1 similar comment
Contributor
Author
|
jenkins test api |
Contributor
Author
|
Contributor
Author
|
jenkins test api |
This was referenced Aug 12, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
with_repeat_trans_intrwrapper would allow users to avoid using with_trans_intr together with repeat_eagain.Introducing this method requires including transaction in the header file of transaction_interruptor in order to use
reset_preserve_handle.We couldn't introduce it in the cc file due to its being a deduced template auto return type.
In order to achieve that, the circular dependency of
transaction_interruptor<->transactionhad to be solved.Which requires moving
base_ertrandbase_iertrto common definitions instead of declaring them in each user.The changes are separated to incremental commits that are able to be compiled in each breaking point for easier cr/history.
Note: this will used in #64771 and is taken out of it for easier cr/testing.
Example usage: 72a21b7#diff-e4c24ed06382cbe8ff9ca5c62387891f8d7d82d06e7d1304abbf90f39c384fedR375
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 test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job Definition