All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jason Dillaman <dillaman@redhat.com>
To: Gregory Farnum <greg@gregs42.com>
Cc: Ceph Development <ceph-devel@vger.kernel.org>
Subject: Re: RBD journal draft design
Date: Tue, 9 Jun 2015 15:08:34 -0400 (EDT)	[thread overview]
Message-ID: <838188530.13777348.1433876914558.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <CAC6JEv-RnsXqYZ215WZHcy8Fhyz2H7PPEJSjWVfj4P=gnTCP2A@mail.gmail.com>

> I must not be being clear. Tell me if this scenario is possible:
> 
> * Client A writes to file foo many times and it is journaled to object set 1.
> * Client B writes to file bar many times and it starts journaling to
> object set 1, but hits the end and moves on to object set 2.
> * Client A hits a synchronization point in its higher-level logic.
> * Client A fsyncs file foo to object set 1 and then
> * Client B hits the synchronization point, fsyncs file bar to object
> set 2, and sends data back to Client A.
> * Client A fsyncs the receipt of its data stream to object set 1, and
> only then gets sent on to object set 2.
> * The journal copier runs and migrates object set 1 to a remote data
> center, then the data center explodes.
> * In the remote data center they fail over and client A thinks it has
> reached a synchronization point and gotten an acknowledgement that
> client B has never heard of.
> 
> Does that being a problem make sense? I don't think handling it is
> overly complicated and it's kind of important.
> -Greg

Seems this case is solved if you delay the completion of client B's flush (fsync) until the "active set updated" notification is successfully delivered.  In that case, client A would know that it needs to re-read the active set collection and thus needs to now write to object set 2.  Thoughts?

  reply	other threads:[~2015-06-09 19:08 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1574383603.9391063.1433257824183.JavaMail.zimbra@redhat.com>
2015-06-02 15:11 ` RBD journal draft design Jason Dillaman
2015-06-03  0:39   ` Gregory Farnum
2015-06-03 16:13     ` Jason Dillaman
2015-06-04  0:01       ` Gregory Farnum
2015-06-04 15:08         ` Jason Dillaman
2015-06-04 20:25           ` Gregory Farnum
2015-06-05  0:36             ` Jason Dillaman
2015-06-09 18:32               ` Gregory Farnum
2015-06-09 19:08                 ` Jason Dillaman [this message]
2015-06-09 22:30                   ` Gregory Farnum
2015-06-03 10:47   ` John Spray
2015-06-03 16:24     ` Jason Dillaman

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=838188530.13777348.1433876914558.JavaMail.zimbra@redhat.com \
    --to=dillaman@redhat.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=greg@gregs42.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.