mirror of
https://github.com/ceph/ceph
synced 2025-02-19 00:47:49 +00:00
osd: warn if recovery still has missing at end
We shouldn't get to this point. If we do, recover_primary didn't do what it needed to. Dump the remaining missing set and hope we can debug. Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
75cbed61e9
commit
e1a9e18b38
@ -5430,6 +5430,13 @@ int ReplicatedPG::start_recovery_ops(int max, RecoveryCtx *prctx)
|
||||
return started;
|
||||
}
|
||||
|
||||
if (missing.num_missing() > 0) {
|
||||
// this shouldn't happen!
|
||||
osd->clog.error() << info.pgid << " recovery ending with " << missing.num_missing()
|
||||
<< ": " << missing.missing << "\n";
|
||||
return started;
|
||||
}
|
||||
|
||||
handle_recovery_complete(prctx);
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user