https://tracker.ceph.com/https://tracker.ceph.com/favicon.ico2011-08-05T17:12:29ZCeph Ceph - Bug #1370: pgmon: PGMap::creating_pgs is not checked on leader electionhttps://tracker.ceph.com/issues/1370?journal_id=52022011-08-05T17:12:29ZGreg Farnumgfarnum@redhat.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>In Progress</i></li></ul> Ceph - Bug #1370: pgmon: PGMap::creating_pgs is not checked on leader electionhttps://tracker.ceph.com/issues/1370?journal_id=52282011-08-08T09:18:47ZSage Weilsage@newdream.net
<ul><li><strong>Target version</strong> changed from <i>v0.33</i> to <i>v0.34</i></li></ul> Ceph - Bug #1370: pgmon: PGMap::creating_pgs is not checked on leader electionhttps://tracker.ceph.com/issues/1370?journal_id=52552011-08-08T09:23:27ZSage Weilsage@newdream.net
<ul><li><strong>translation missing: en.field_position</strong> set to <i>31</i></li></ul> Ceph - Bug #1370: pgmon: PGMap::creating_pgs is not checked on leader electionhttps://tracker.ceph.com/issues/1370?journal_id=53472011-08-08T13:53:49ZGreg Farnumgfarnum@redhat.com
<ul></ul><p>Ah, not quite what I thought it was. creating_pgs is actually maintained via stat_pg_[add|sub], and it's done correctly. The problem is that creating_pgs is only dealt with in register_new_pgs, which is only called via check_osd_map, which is only called by OSDMonitor::update_from_paxos. Which is called frequently, but backs out unless there's a new map it didn't have before.<br />And if your cluster is stable, you can keep the same OSD map for a looooooong time.</p>
<p>Which meant that if you got a new leader election at the wrong time, you could have PG creations that are indefinitely delayed. To handle this, use the virtual on_active() method and call check_osd_map (if you're the leader.</p> Ceph - Bug #1370: pgmon: PGMap::creating_pgs is not checked on leader electionhttps://tracker.ceph.com/issues/1370?journal_id=53492011-08-08T14:36:20ZGreg Farnumgfarnum@redhat.com
<ul><li><strong>Subject</strong> changed from <i>pgmon: PGMap::creating_pgs is not serialized to disk </i> to <i>pgmon: PGMap::creating_pgs is not checked on leader election</i></li><li><strong>Status</strong> changed from <i>In Progress</i> to <i>7</i></li></ul> Ceph - Bug #1370: pgmon: PGMap::creating_pgs is not checked on leader electionhttps://tracker.ceph.com/issues/1370?journal_id=53982011-08-10T16:53:35ZGreg Farnumgfarnum@redhat.com
<ul><li><strong>Status</strong> changed from <i>7</i> to <i>Resolved</i></li></ul><p>Well, I haven't seen any more errors from here, so I guess I misread something or fixed it elsewhere. Merged all the pg create bits into master in <a class="changeset" title="Merge branch 'wip-pg-creation'" href="https://tracker.ceph.com/projects/ceph/repository/revisions/97a77c1cbc70af7bf266afe820f2fa1627684806">97a77c1cbc70af7bf266afe820f2fa1627684806</a></p>