All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gregory Farnum <gfarnum@redhat.com>
To: "Xinze Chi (信泽)" <xmdxcxz@gmail.com>
Cc: "ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>
Subject: Re: objecter incremental osdmap crc check
Date: Wed, 3 Feb 2016 09:00:08 -0800	[thread overview]
Message-ID: <CAJ4mKGYLs1nKOnU24s5Xh3SBPeCf=RUd-=hky02-q2FYPwf3Fw@mail.gmail.com> (raw)
In-Reply-To: <CANE=7sVATveDWRxv_X=jprzcJW50ssu0zojQgHLOUDP5aGF5Pw@mail.gmail.com>

On Wed, Feb 3, 2016 at 5:54 AM, Xinze Chi (信泽) <xmdxcxz@gmail.com> wrote:
> hi, all:
>
>       When osd update the osdmap, it would apply the
> OSDMap::Incremental and get the crc for the new osdmap. If the crc is
> not the same as define in Incremental osd would request the full
> osdmap. I think the logic is quite well.
>
>      But in the client, the objecter do not check the crc. I do not
> know why not client do the same logic as osd.
>
>     Could anyone explain this? Thanks.

Two things:
1) The client doesn't necessarily have the full OSDMap that the OSDs
do, so the CRC won't match. (You can see this in the encoding family
of functions; there are sections which are server-only.) I suppose the
monitors could include a client-only CRC as well...
2) Nobody bothered since it seemed less important for "ephemeral"
clients versus OSDs that persist their maps and share them with peers.
-Greg
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2016-02-03 17:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-03 13:54 objecter incremental osdmap crc check Xinze Chi (信泽)
2016-02-03 17:00 ` Gregory Farnum [this message]
2016-02-04 11:25   ` Xinze Chi (信泽)
2016-02-04 15:22     ` Gregory Farnum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJ4mKGYLs1nKOnU24s5Xh3SBPeCf=RUd-=hky02-q2FYPwf3Fw@mail.gmail.com' \
    --to=gfarnum@redhat.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=xmdxcxz@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.