]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: fix DAMAGED beacons from rejoin
authorJohn Spray <john.spray@redhat.com>
Mon, 18 May 2015 21:56:44 +0000 (22:56 +0100)
committerJohn Spray <john.spray@redhat.com>
Thu, 18 Jun 2015 10:19:44 +0000 (11:19 +0100)
commit81b51bae452fcb9cf29a84a4d75e684c0cccae20
tree913ac0a1ba0b0bed3170da076ffec76e09fa4226
parentb37dd43039935d35b579ce2062dab6b2294220af
mds: fix DAMAGED beacons from rejoin

In certain cases, the beacon was emitted from within
handle_mds_map (via MDCache::rejoin_start and
the "No subtrees found for root MDS rank!" error
handler.  This was happening before Beacon::notify_mdsmap
had been called with the new epoch, so the DAMAGED
beacon had the old epoch set, and was consequently
ignored by the MDSMonitor.

The symptom would be that MDS ranks with metadata damaged
in this particular way would flap instead of gracefully
going damaged.

Signed-off-by: John Spray <john.spray@redhat.com>
src/mds/MDS.cc