]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
OSD: handle the case where we resurrected an old, deleted pg 4559/head
authorSamuel Just <sjust@redhat.com>
Tue, 21 Apr 2015 06:45:57 +0000 (23:45 -0700)
committerLoic Dachary <ldachary@redhat.com>
Wed, 6 May 2015 13:01:11 +0000 (15:01 +0200)
commit8a6e6e4c107b03563b2e38aa24cc2067ce6a7350
treef95d1b0e3cb6c0c9bdbc8636f36f48ac19aa7080
parentbc51476181429d7d95d2bba5f774d8b60c47fb1f
OSD: handle the case where we resurrected an old, deleted pg

Prior to giant, we would skip pgs in load_pgs which were not present in
the current osdmap.  Those pgs would eventually refer to very old
osdmaps, which we no longer have causing the assertion failure in 11429
once the osd is finally upgraded to a version which does not skip the
pgs.  Instead, if we do not have the map for the pg epoch, complain to
the osd log and skip the pg.

Fixes: 11429
Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit fbfd50de5b9b40d71d2e768418a8eca28b1afaca)
src/osd/OSD.cc