]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: increment stas on recovery pull also 10152/head
authorKefu Chai <kchai@redhat.com>
Wed, 6 Jul 2016 11:41:54 +0000 (19:41 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 6 Jul 2016 12:00:58 +0000 (20:00 +0800)
commit9c6c4d8fef67380e2a6d93f6c101744c926d8b9b
tree187203e70739f67406f3758bd9736f07b1308b16
parentb342bf8ea127dae39cfdaa6558a77640905890f5
osd: increment stas on recovery pull also

PGMap::recovery_rate_summary() summaries the recovery progress from
a pool's
pool_stat_t.stats.sum.num_{objects_recovered,bytes_recovered,keys_recovered},
now we only increment stats on completion of recovery push, but there
are chances that a PG recovers by pulling data from replicas to primary.
in that case, teuthology will erroneously consider recovery hung: a zero
recovering_keys_per_sec or recovering_bytes_per_sec or
recovering_objects_per_sec. so we should increment stats on pull as
well.

Fixes: http://tracker.ceph.com/issues/16277
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/osd/ReplicatedBackend.cc