Skip to content

mimic: core: choose async recovery targets by last_complete#30459

Closed
guoracle wants to merge 1 commit intoceph:mimicfrom
guoracle:mimic
Closed

mimic: core: choose async recovery targets by last_complete#30459
guoracle wants to merge 1 commit intoceph:mimicfrom
guoracle:mimic

Conversation

@guoracle
Copy link

In the asynchronous recovery feature,
the asynchronous recovery target OSD is selected by last_updata.version,
so that after the peering is completed, the asynchronous recovery target OSDs update the last_update.version, and then go down again, when the asynchronous recovery target OSDs is back online, when peering,there is no pglog difference between the asynchronous recovery targets and the authoritative OSD, resulting in no asynchronous recovery. My solution is to use last_complete.version to calculate the pglog difference and update the last_complete of the asynchronous recovery target OSD in the copy of peer_info to the latest after the recovery is complete.

@xiexingguo
Copy link
Member

@guoracle I posted an alternate fix at #30466

@smithfarm smithfarm added this to the mimic milestone Oct 5, 2019
Copy link
Contributor

@smithfarm smithfarm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. Have you read https://github.com/ceph/ceph/blob/master/SubmittingPatches.rst ?
The reason I ask is the commit is not signed.

Also, please either change the base (target) branch to master or, if the fix is not applicable to master for some reason, add some text to the commit message explaining why the fix cannot be applied first to master and then cherry-picked from there to mimic.

(Ordinarily, all bugs are fixed in master, first, and the fixes are backported from master to the stable branches.)

@smithfarm smithfarm changed the title choose async recovery targets by last_complete mimic: core: choose async recovery targets by last_complete Oct 5, 2019
@smithfarm
Copy link
Contributor

Ah, I see the alternative fix #30466 was merged, so I'll close this one.

@smithfarm smithfarm closed this Oct 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants