Project

General

Profile

Actions

Bug #41924

closed
XX XX

asynchronous recovery can not function under certain circumstances

Bug #41924: asynchronous recovery can not function under certain circumstances

Added by xie xingguo about 7 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Peering
Target version:
-
Due date:
% Done:

0%

Source:
Community (dev)
Backport:
nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Tags (freeform):
Fixed In:
v15.0.0-5487-g2914402345
Released In:
v15.2.0~2085
Upkeep Timestamp:
2025-07-15T20:10:19+00:00

Description

guoracle report that:

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.

https://github.com/ceph/ceph/pull/24004 aimed to solve the problem by persisting the number of missing objects into the disk when peering was done, and then we could take both new approximate missing objects (estimated according to last_update) and historical num_objects_missing into account when determining async_recovery_targets on any new follow-up peering circles.
However, the above comment stands only if we could keep an up-to-date num_objects_missing field for each pg instance under any circumstances, which is unfortunately not true for replicas which have completed peering but never started recovery later (7de35629f562436d2bdb85788bdf97b10db3f556 make sure we'll update num_objects_missing for primary when peering is done, and will keep num_objects_missing up-to-update when each missing object is recovered).

Note that guoracle also suggests to fix the same problem by using 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, which should not work well because we might reset last_complete to 0'0 whenever we trim pglog past the minimal need-version of missing set.


Related issues 1 (0 open — 1 closed)

Copied to RADOS - Backport #42141: nautilus: asynchronous recovery can not function under certain circumstancesResolvedNathan Cutler

Actions

XX Updated by xie xingguo about 7 years ago Actions #1

  • Pull request ID set to 30466

XX Updated by xie xingguo about 7 years ago Actions #2

  • Backport changed from mimic,nautilus to nautilus

GF Updated by Greg Farnum about 7 years ago Actions #3

  • Status changed from New to 17

NO Updated by Neha Ojha about 7 years ago Actions #4

  • Status changed from 17 to Fix Under Review

XX Updated by xie xingguo about 7 years ago Actions #5

  • Status changed from Fix Under Review to Pending Backport

NC Updated by Nathan Cutler about 7 years ago Actions #6

  • Copied to Backport #42141: nautilus: asynchronous recovery can not function under certain circumstances added

NC Updated by Nathan Cutler about 7 years ago Actions #7

  • Backport changed from nautilus to nautilus, mimic

Adding mimic backport, since the first attempted fix ( see https://github.com/ceph/ceph/pull/30459 ) targeted mimic.

NO Updated by Neha Ojha about 7 years ago Actions #8

@Nathan Weinberg The PR that merged is based on https://github.com/ceph/ceph/pull/24004, which has not been backported to mimic. I don't think we should backport this fix to mimic.

NO Updated by Neha Ojha about 7 years ago Actions #9

  • Backport changed from nautilus, mimic to nautilus

NC Updated by Nathan Cutler about 7 years ago Actions #10

Neha Ojha wrote:

@Nathan Weinberg The PR that merged is based on https://github.com/ceph/ceph/pull/24004, which has not been backported to mimic. I don't think we should backport this fix to mimic.

Thanks, Neha.

NC Updated by Nathan Cutler about 7 years ago Actions #11

  • Status changed from Pending Backport to Resolved

While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".

UB Updated by Upkeep Bot over 1 year ago Actions #12

  • Merge Commit set to 2914402345beb158feae5410e1d00fe6c9c285f9
  • Fixed In set to v15.0.0-5487-g2914402345
  • Released In set to v15.2.0~2085
  • Upkeep Timestamp set to 2025-07-15T20:10:19+00:00
Actions

Also available in: PDF Atom