]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: do not send duplicated osdmap msg to not sync'ed osd 13046/head
authorMingxin Liu <mingxin@xsky.com>
Mon, 2 Jan 2017 05:20:10 +0000 (13:20 +0800)
committerNathan Cutler <ncutler@suse.com>
Sat, 21 Jan 2017 21:42:28 +0000 (22:42 +0100)
commit0e0d149895198ee74cff85353eabf19aa4677258
treef9ba711dff8b3b245989ce97d2bf7a774200cb14
parent61b1beef1dc4802c32367fc71968101a09042c15
mon: do not send duplicated osdmap msg to not sync'ed osd

prior to this change:
a peon may forward the pgstats to leader, and record it locally, but leader will
check if osd has the latest map before process, if not, will use a route op to
indicate peon to send it, then poen will delete routed op when fininaly send
out which make peon cannot send pgstatack when leader has processed the
pgstat update. so osd will always track it util reach a threshold block pgstats
sending, at worst, reopen mon session.
also, both leader and peon will send out the osdmap message to the osd.

after this change:
only the peon will send out the osdmap message. and the pgstatack message
will be routed to the osd as expected. so the osd will not keep track of the
"acked" pg stats in its queue forever before times out.

Fixes: http://tracker.ceph.com/issues/18458
Signed-off-by: Mingxin Liu <mingxin@xsky.com>
(cherry picked from commit 57274488c072ec6912b700288ce5b1ea8372d162)
src/mon/PGMonitor.cc