From: Greg Farnum Subject: Re: [PATCH 08/39] mds: consider MDS as recovered when it reaches clientreply state. Date: Wed, 20 Mar 2013 11:40:57 -0700 Message-ID: <80DEECF59AAD445C8EEEFCE71A74EA78@inktank.com> References: <1363531902-24909-1-git-send-email-zheng.z.yan@intel.com> <1363531902-24909-9-git-send-email-zheng.z.yan@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mail-pb0-f53.google.com ([209.85.160.53]:49604 "EHLO mail-pb0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754263Ab3CTSlA convert rfc822-to-8bit (ORCPT ); Wed, 20 Mar 2013 14:41:00 -0400 Received: by mail-pb0-f53.google.com with SMTP id un1so1567588pbc.40 for ; Wed, 20 Mar 2013 11:41:00 -0700 (PDT) In-Reply-To: <1363531902-24909-9-git-send-email-zheng.z.yan@intel.com> Content-Disposition: inline Sender: ceph-devel-owner@vger.kernel.org List-ID: To: =?utf-8?Q?Yan=2C_Zheng?= Cc: ceph-devel@vger.kernel.org, sage@inktank.com The idea of this patch makes sense, but I'm not sure if we guarantee th= at each daemon sees every map update =E2=80=94 if they don't then if an= MDS misses the map moving an MDS into CLIENTREPLAY then they won't pro= cess them as having recovered on the next map. Sage or Joao, what are t= he guarantees subscription provides? =20 -Greg Software Engineer #42 @ http://inktank.com | http://ceph.com On Sunday, March 17, 2013 at 7:51 AM, Yan, Zheng wrote: > From: "Yan, Zheng" > =20 > MDS in clientreply state already start servering requests. It also > make MDS::handle_mds_recovery() and MDS::recovery_done() match. > =20 > Signed-off-by: Yan, Zheng > --- > src/mds/MDS.cc (http://MDS.cc) | 2 ++ > 1 file changed, 2 insertions(+) > =20 > diff --git a/src/mds/MDS.cc (http://MDS.cc) b/src/mds/MDS.cc (http://= MDS.cc) > index 282fa64..b91dcbd 100644 > --- a/src/mds/MDS.cc (http://MDS.cc) > +++ b/src/mds/MDS.cc (http://MDS.cc) > @@ -1032,7 +1032,9 @@ void MDS::handle_mds_map(MMDSMap *m) > =20 > set oldactive, active; > oldmap->get_mds_set(oldactive, MDSMap::STATE_ACTIVE); > + oldmap->get_mds_set(oldactive, MDSMap::STATE_CLIENTREPLAY); > mdsmap->get_mds_set(active, MDSMap::STATE_ACTIVE); > + mdsmap->get_mds_set(active, MDSMap::STATE_CLIENTREPLAY); > for (set::iterator p =3D active.begin(); p !=3D active.end(); ++= p) =20 > if (*p !=3D whoami && // not me > oldactive.count(*p) =3D=3D 0) // newly so? > -- =20 > 1.7.11.7 -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html