Repository navigation
osd: Support for OMAPs in EC Pools PR 2 - #66702
MattyWilliams22 wants to merge 2 commits into
Conversation
|
jenkins test api |
|
jenkins test make check |
|
jenkins test make check arm64 |
|
jenkins test windows |
|
jenkins test make check |
|
jenkins test make check arm64 |
|
jenkins test api |
|
jenkins test make check |
|
jenkins test make check arm64 |
6fb9307 to
5867cae
Compare
|
jenkins test windows |
37b9b4a to
7b31634
Compare
7b31634 to
57e8d83
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
57e8d83 to
dca5488
Compare
ded19d8 to
67a2621
Compare
67a2621 to
8fd51ae
Compare
|
jenkins test windows |
1 similar comment
|
jenkins test windows |
| bool omap_satisfied = !get_parent()->get_pool().supports_omap() || | ||
| !to_read.want_omap_header || | ||
| complete.omap_header || | ||
| complete.omap_complete; |
There was a problem hiding this comment.
Shouldn't this be (complete.omap_header && complete.omap_complete) ?
There was a problem hiding this comment.
I have made this change and changed !to_read.want_omap_header to be (!to_read.want_omap_header && !to_read.want_omap_keys). Do you agree with that change too?
8fd51ae to
94e5415
Compare
| @@ -8277,6 +8285,10 @@ int OSDMonitor::prepare_new_pool(string& name, | |||
| if (crimson) { | |||
| pi->set_flag(pg_pool_t::FLAG_CRIMSON); | |||
| } | |||
| if (pool_type == pg_pool_t::TYPE_REPLICATED | |||
There was a problem hiding this comment.
What reads this flag and how much do we rely on it?
I am concerned about what happens with a new client talking to an old OSD - is it possible it will think that the replica pool does not support OMAP?
| if (rel >= ceph_release_t::umbrella) { | ||
| // Initialise FLAG_OMAP for every pool | ||
| for (auto& [pool_id, pool] : osdmap.get_pools()) { | ||
| if (!pool.has_flag(pg_pool_t::FLAG_OMAP) && pool.is_replicated()) { |
There was a problem hiding this comment.
Temporary restriction on replica pools only? If so - worth a comment.
Add omap fields to read_request_t, read_result_t, ECSubRead and ECSubReadReply. Read and write omap header and entries if !omap_complete. Require omap_complete to finish recovery. Fixes: https://tracker.ceph.com/issues/74244 Signed-off-by: Matty Williams <[email protected]>
94e5415 to
ab676b2
Compare
|
This PR has been combined into this PR: #66726 |
osd: Allow for recovery of OMAP header and entries in EC Pools
The first commit in this PR introduces the supports_omap pool flag which is added in PR 1: #66618
The second commit is the commit of interest.
Add omap fields to read_request_t, read_result_t, ECSubRead and ECSubReadReply.
Read and write omap header and entries if !omap_complete.
Require omap_complete to finish recovery.
Fixes: https://tracker.ceph.com/issues/74244
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 DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.