Tarantool development patches archive
 help / color / mirror / Atom feed
From: Vladimir Davydov <vdavydov.dev@gmail.com>
To: tarantool-patches@freelists.org
Subject: Re: [PATCH v2 0/7] Join replicas off the current read view
Date: Mon, 19 Aug 2019 19:54:10 +0300	[thread overview]
Message-ID: <20190819165410.GP13834@esperanza> (raw)
In-Reply-To: <cover.1566233187.git.vdavydov.dev@gmail.com>

On Mon, Aug 19, 2019 at 07:53:13PM +0300, Vladimir Davydov wrote:
> Currently, we join replicas off the last checkpoint. As a result, we
> must keep all files corresponding to the last checkpoint. This means
> that we must always create a memtx snapshot file on initial call to
> box.cfg() even though it is virtually the same for all instances.
> Besides, we must rotate the vylog file synchronously with snapshot
> creation, otherwise we wouldn't be able to pull all vinyl files
> corresponding to the last checkpoint. This interconnection between
> vylog and xlog makes the code difficult to maintain.
> 
> Actually, nothing prevents us from relaying the current read view
> instead of the last checkpoint on initial join, as both memtx and
> vinyl support a consistent read view. This patch does the trick.
> This is a step towards making vylog independent of checkpointing
> and WAL.
> 
> https://github.com/tarantool/tarantool/issues/1271
> https://github.com/tarantool/tarantool/issues/4417
> https://github.com/tarantool/tarantool/commits/dv/gh-1271-rework-replica-join
> 
> Changes in v2:
>  - Commit preparatory patches approved by Kostja and rebase on
>    the latest master branch.
>  - Fix the issue with box.on_schema_init and space.before_replace
>    instead of disabling the test (see #4417).

v1 can be found here:

https://www.freelists.org/post/tarantool-patches/PATCH-0013-Join-replicas-off-the-current-read-view

  parent reply	other threads:[~2019-08-19 16:54 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-19 16:53 Vladimir Davydov
2019-08-19 16:53 ` [PATCH v2 1/7] vinyl: don't pin index for iterator lifetime Vladimir Davydov
2019-08-19 20:35   ` [tarantool-patches] " Konstantin Osipov
2019-08-19 16:53 ` [PATCH v2 2/7] vinyl: don't exempt dropped indexes from dump and compaction Vladimir Davydov
2019-08-19 20:47   ` [tarantool-patches] " Konstantin Osipov
2019-08-20  8:12     ` Vladimir Davydov
2019-08-20  9:02       ` Vladimir Davydov
2019-08-20 11:52       ` Konstantin Osipov
2019-08-20 14:16   ` Vladimir Davydov
2019-08-19 16:53 ` [PATCH v2 3/7] vinyl: get rid of vy_env::join_lsn Vladimir Davydov
2019-08-19 20:49   ` [tarantool-patches] " Konstantin Osipov
2019-08-19 16:53 ` [PATCH v2 4/7] memtx: use ref counting to pin indexes for snapshot Vladimir Davydov
2019-08-19 20:50   ` [tarantool-patches] " Konstantin Osipov
2019-08-19 16:53 ` [PATCH v2 5/7] memtx: enter small delayed free mode from snapshot iterator Vladimir Davydov
2019-08-19 20:51   ` [tarantool-patches] " Konstantin Osipov
2019-08-19 16:53 ` [PATCH v2 6/7] space: get rid of apply_initial_join_row method Vladimir Davydov
2019-08-19 20:54   ` [tarantool-patches] " Konstantin Osipov
2019-08-19 16:53 ` [PATCH v2 7/7] relay: join new replicas off read view Vladimir Davydov
2019-08-19 20:57   ` [tarantool-patches] " Konstantin Osipov
2019-08-20  8:16     ` Vladimir Davydov
2019-08-20 11:53       ` Konstantin Osipov
2019-08-20 12:05         ` Vladimir Davydov
2019-08-20 13:50           ` Konstantin Osipov
2019-08-20 14:03             ` Vladimir Davydov
2019-08-21 22:08               ` Konstantin Osipov
2019-08-22  8:05                 ` Vladimir Davydov
2019-08-19 16:54 ` Vladimir Davydov [this message]
2019-08-20  8:53 ` [PATCH v2 0/7] Join replicas off the current " Vladimir Davydov

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=20190819165410.GP13834@esperanza \
    --to=vdavydov.dev@gmail.com \
    --cc=tarantool-patches@freelists.org \
    --subject='Re: [PATCH v2 0/7] Join replicas off the current read view' \
    /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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox