Repository navigation
crimson/osd/pg_recovery: skip unfound objects when recovering the primary - #57147
Conversation
There was a problem hiding this comment.
IIUC, start_recovery_ops returned future is carrying boolean solely to determine whether we should call find_unfound.
return pg->get_recovery_handler()->start_recovery_ops(
...
).then_interruptible([this] (bool do_unfound) {
if (do_unfound) {
return pg->find_unfound(epoch_started);
}
});
Is there any other reason to return a boolean?
There was a problem hiding this comment.
@xxhdx1985126, we should either make use of start_recovery_ops returned boolean as my previous comment suggests or omit the returned boolean into am empty future.
There was a problem hiding this comment.
/*
* if we couldn't start any recovery ops and things are still
* unfound, see if we can discover more missing object locations.
* It may be that our initial locations were bad and we errored
* out while trying to pull.
*/
athanatos
left a comment
There was a problem hiding this comment.
LGTM other than my comment.
There was a problem hiding this comment.
Let's just modify find_unfound to return a ready future if there are no unfound. That'll simplify all of the callers.
There was a problem hiding this comment.
Sorry for the delay, I forgot to address this comment, please take a look again, thanks.
necessary Signed-off-by: Xuehan Xu <[email protected]>
|
jenkins test make check |
|
jenkins test api |
|
Ready to merge based on https://pulpito.ceph.com/sjust-2024-06-14_20:06:29-crimson-rados:thrash-wip-sjust-crimson-testing-2024-06-14-distro-default-smithi/
|
Fixes: https://tracker.ceph.com/issues/65696
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