Repository navigation
crimson/osd/pg_recovery: call MOSDPGRecoveryDelete instead of MOSDPGBackfillRemove - #67925
Conversation
a3095af to
8bae940
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
f3891d8 to
7633c9b
Compare
jdurgin
left a comment
There was a problem hiding this comment.
Looks like a nice simple way to solve this with existing infrastructure! Thanks for the detailed diagram as well.
As I was reviewing I noticed an old TODO in this area:
// TODO: should consider async recovery cases in the future which are not supported
@Matan-B @xxhdx1985126 is this TODO still relevant?
7633c9b to
3211f41
Compare
Yes, the tracker for this todo is https://tracker.ceph.com/issues/70677. Most of the groundwork is there, we could try reviving my PR. |
|
jenkins test api |
rzarzynski
left a comment
There was a problem hiding this comment.
Generally LGTM but please see the comment below.
| LOG_PREFIX(PGRecovery::send_recovery_deletes); | ||
| DEBUGDPP("obj={}", *pg->get_dpp(), obj); | ||
| if (!pg->get_recovery_backend()->is_recovering(obj)) { | ||
| return; |
There was a problem hiding this comment.
Please a debug for this early exit.
There was a problem hiding this comment.
done, added a debug for this!
…ackfillRemove This commit fixes the abort in Recovered::Recovered. There is a race to acquire the OBC lock between backfill and client delete for the same object. When the lock is acquired first by the backfill, the object is recovered first, and then deleted by the client delete request. When recovering the object, the corresponding peer_missing entry is cleared and we are able to transition to Recovered state successfully. When the lock is acquired first by client delete request, the object is deleted. Then backfill tries to recover the object, finds it deleted and exists early. The stale peer_missing entry is not cleared. In Recovered::Recovered, needs_recovery() sees this stale peer_missing entry and calls abort. The issue is fixed by sending MOSDPGRecoveryDelete from the client path to peers and waiting for MOSDPGRecoveryDeleteReply in recover_object. Fixes: https://tracker.ceph.com/issues/70501 Signed-off-by: Shraddha Agrawal <[email protected]>
3211f41 to
011f9d6
Compare
|
This is an automated message by src/script/redmine-upkeep.py. I have resolved the following tracker ticket due to the merge of this PR: No backports are pending for the ticket. If this is incorrect, please update the tracker |
Problem
This is the same as described in #67488.
Additionally, the client request comes before
enqueue_pushinvokes for our object. Which means, when the client request arrives, the object is not being backfilled, sois_degraded_or_backfilling_objectdoes not block the client request.Solution
This PR solves this problem by doing 2 things:
MOSDPGBackfillRemove, we issue aMOSDPGRecoveryDelete. Unlike the prior message,MOSDPGRecoveryDeletesends a reply.recover_object, if the object is found to be deleted on primary, we abort recovery. Instead, we check if there are any pushes for this object and if so, we wait for theMOSDPGRecoveryDeleteReply. Once the replies are received, the backfill state machine invokeson_peer_recover, thus clearing the stale peer_missing entries. Finally it calledon_global_recoverand exits.The solution is visualised here, for https://pastebin.com/raw/1XtHEFjM:
QA Runs:
The following QA runs validate the solution:
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.