]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/PeeringState: transit async_recovery_targets back into acting before backfilling 32202/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 12 Dec 2019 06:01:45 +0000 (14:01 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Sat, 14 Dec 2019 00:27:11 +0000 (08:27 +0800)
commit48bc4786fd73b538b673e6a7eb7ced986d95005f
tree33b3555f9e81262cff9a4a3aff118565518c94ed
parentc4d12bfef8fa9d06a77186ea3a401e0a4a795025
osd/PeeringState: transit async_recovery_targets back into acting before backfilling

When an osd that is part of current up set gets chosen as an
async_recovery_target, it gets removed from the acting set.
Since we don't allow any want that is larger than the pool size,
a pg must transit into UNDERSIZED when asynchronous recovery
eventually happens.
However, if that pg has one or more backfill targets, it might
spin UNDERSIZED for a long time during which mon will keep issuing
"PG_AVAILABILITY" warns until all backfill targets finally completes.

Fix by calling choose_acting to get any async_recovery_targets back
into acting before we continue to backfill.

Fixes: https://tracker.ceph.com/issues/43311
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/PeeringState.cc