All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jason Dillaman <jdillama@redhat.com>
To: Victor Denisov <vdenisov@mirantis.com>
Cc: Gregory Farnum <gfarnum@redhat.com>,
	Mykola Golub <mgolub@mirantis.com>,
	ceph-devel <ceph-devel@vger.kernel.org>,
	Josh Durgin <jdurgin@redhat.com>
Subject: Re: blueprint: consistency groups
Date: Wed, 11 May 2016 11:12:49 -0400	[thread overview]
Message-ID: <CA+aFP1CfOCy9pL=NWka=j=otb7rwO7W=ds-ggBMz0hVY=zj3-Q@mail.gmail.com> (raw)
In-Reply-To: <CA+hcxJTWZWUAUGr1gAZwEqLrGY9eJpzrF3+0H3wqaSjiY6-Faw@mail.gmail.com>

On Tue, May 10, 2016 at 12:25 PM, Victor Denisov <vdenisov@mirantis.com> wrote:
> I was writing unit tests for create_cg function when I realized that
> it wouldn't recover if we lost connection between
> cls_client::dir_add_cg and create_cg object. If create_cg doesn't
> happen then we are unable to repeat dir_add_cg.
> However since I implemented create_cg operation after create_image
> operation. create_image operation has the same issue.

Correct - the recovery is to remove the image and re-create if you
have a failure creating the image.  I think that is a valid solution
to the consistency groups as well.

> So, my question is. Should I reimplement create_cg so that it can
> recover from connection loss to the cluster or should I keep it the
> same way create_image is implemented?

There will not be an issue if the connection is lost -- there will
only be an issue if the rbd CLI (or whatever else is using the librbd
API) crashes / is stopped mid-operation.  I am fine with matching the
create_image behavior because there is a recovery path.

> Also, what is more preferable big pull request for all components of
> the feature - CRUD for consistency groups and snapshots, or split it
> into smaller pull requests - first merge CRUD operations then
> implement snapshots?

Smaller patchsets are easier to review, test, and merge (especially as
review comments are addressed).

-- 
Jason

  reply	other threads:[~2016-05-11 15:12 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-24 15:50 blueprint: consistency groups Victor Denisov
2016-03-24 22:38 ` Gregory Farnum
2016-03-25  7:19   ` Mykola Golub
2016-03-29 17:54     ` Gregory Farnum
2016-04-22 23:49       ` Victor Denisov
     [not found]         ` <CA+aFP1CnKvVJrWDmKhpziu5otOV73HC5gnUsgZ8+oDW+708Rag@mail.gmail.com>
2016-04-25 21:11           ` Victor Denisov
2016-04-26 16:09             ` Jason Dillaman
2016-04-26 23:33               ` Victor Denisov
2016-04-27 17:50                 ` Jason Dillaman
2016-04-28 18:06                   ` Victor Denisov
2016-05-03  0:26                     ` Victor Denisov
2016-05-03  6:54                       ` Mykola Golub
2016-05-03 12:05                       ` Jason Dillaman
2016-05-03 21:48                         ` Victor Denisov
2016-05-04  0:29                           ` Jason Dillaman
2016-05-10 16:25                             ` Victor Denisov
2016-05-11 15:12                               ` Jason Dillaman [this message]
2016-05-11 18:44                                 ` Victor Denisov
2016-05-11 20:24                                   ` Jason Dillaman
2016-05-13  2:45                                     ` Victor Denisov
2016-05-16 15:48                                       ` Jason Dillaman
2016-05-23 15:32                                         ` Victor Denisov
2016-05-23 22:43                                           ` Victor Denisov
2016-05-24  2:39                                             ` Jason Dillaman
2016-05-24 22:42                                               ` Victor Denisov
2016-05-25  5:30                                                 ` Jason Dillaman
2016-05-25 21:34                                                   ` Victor Denisov
2016-05-26  0:53                                                     ` Jason Dillaman
2016-05-26  1:01                                                       ` Victor Denisov
2016-06-04  0:33                                                         ` Victor Denisov
2016-06-09 23:23                                                           ` Victor Denisov

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='CA+aFP1CfOCy9pL=NWka=j=otb7rwO7W=ds-ggBMz0hVY=zj3-Q@mail.gmail.com' \
    --to=jdillama@redhat.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=dillaman@redhat.com \
    --cc=gfarnum@redhat.com \
    --cc=jdurgin@redhat.com \
    --cc=mgolub@mirantis.com \
    --cc=vdenisov@mirantis.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.