All of lore.kernel.org
 help / color / mirror / Atom feed
From: Xuehan Xu <xxhdx1985126@gmail.com>
To: Gregory Farnum <gfarnum@redhat.com>,
	ceph-devel <ceph-devel@vger.kernel.org>
Subject: Re: About the problem "export_diff relies on clone_overlap, which is lost when cache tier is enabled"
Date: Fri, 4 Aug 2017 15:14:14 +0800	[thread overview]
Message-ID: <CAJACTud-qK7WDZnUGfPKP1iTPoStbDGUG28zQ0ftBTBsqQZghA@mail.gmail.com> (raw)
In-Reply-To: <CAJACTuf6q0r0xk6jzohj94cUDRUKKuweTPv021829M-UZZWTHg@mail.gmail.com>

I mean I think it's the condition check "is_present_clone" that
prevent the clone overlap to record the client write operations
modified range when the target "HEAD" object exists without its most
recent clone object, and if I'm right, just move the clone overlap
modification out of the "is_present_clone" condition check block is
enough to solve this case, just like the PR
"https://github.com/ceph/ceph/pull/16790", and this fix wouldn't cause
other problems.

In our test, this fix solved the problem successfully, however, we
can't confirm it won't cause new problems yet.

So if anyone see this and knows the answer, please help us. Thank you:-)

On 4 August 2017 at 11:41, Xuehan Xu <xxhdx1985126@gmail.com> wrote:
> Hi, grep:-)
>
> I finally got what you mean in https://github.com/ceph/ceph/pull/16790.
>
> I agree with you in that " clone overlap is supposed to be tracking
> which data is the same on disk".
>
> My thought is that, "ObjectContext::new_snapset.clones" is already an
> indicator about whether there are clone objects on disk, so, in the
> scenario of "cache tier", although a clone oid does not corresponds to
> a "present clone" in cache tier, as long as
> "ObjectContext::new_snapset.clones" is not empty, there must a one
> such clone object in the base tier. And, as long as
> "ObjectContext::new_snapset.clones" has a strict "one-to-one"
> correspondence to "ObjectContext::new_snapset.clone_overlap", passing
> the condition check "if (ctx->new_snapset.clones.size() > 0)" is
> enough to make the judgement that the clone object exists.
>
> So, if I'm right, passing the condition check "if
> (ctx->new_snapset.clones.size() > 0)" is already enough for us to do
> "newest_overlap.subtract(ctx->modified_ranges)", it doesn't have to
> pass "is_present_clone".
>
> Am I right about this? Or am I missing anything?
>
> Please help us, thank you:-)

  reply	other threads:[~2017-08-04  7:14 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-04  3:41 About the problem "export_diff relies on clone_overlap, which is lost when cache tier is enabled" Xuehan Xu
2017-08-04  7:14 ` Xuehan Xu [this message]
2017-08-05 15:56   ` Xuehan Xu
2017-08-07 20:48     ` Jason Dillaman
     [not found]       ` <CAJACTucaKm+nZUUkQYszZtjt7K=X1uvdpUucxL+pV1AHrmewEw@mail.gmail.com>
     [not found]         ` <CA+aFP1Dki1hw+VGZo9Nm4e=qx2P6-pCcG4PLK3FeDHJ1-pAkGA@mail.gmail.com>
     [not found]           ` <CAJACTudkLVT=dcWo_FpgrVuxJ8smFD2VqLU6x2eVWyggh9UJAA@mail.gmail.com>
2017-08-09  4:20             ` Fwd: " Xuehan Xu
2017-08-09  4:24               ` Xuehan Xu
2017-08-09 15:26                 ` Jason Dillaman
2017-08-10  7:06                   ` Xuehan Xu
2017-08-10  8:11                     ` Xuehan Xu
2017-08-10  9:48                       ` Xuehan Xu
2017-08-10 13:11                     ` Jason Dillaman
2017-08-10 15:11                       ` Xuehan Xu
2017-08-10 15:54                         ` Jason Dillaman
2017-08-21  3:06                           ` Xuehan Xu

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=CAJACTud-qK7WDZnUGfPKP1iTPoStbDGUG28zQ0ftBTBsqQZghA@mail.gmail.com \
    --to=xxhdx1985126@gmail.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=gfarnum@redhat.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.