Tarantool development patches archive
 help / color / mirror / Atom feed
From: Vladimir Davydov <vdavydov.dev@gmail.com>
To: Konstantin Osipov <kostja@tarantool.org>
Cc: tarantool-patches@freelists.org
Subject: Re: [PATCH v2] box: enable WAL before making initial checkpoint
Date: Mon, 11 Feb 2019 17:10:59 +0300	[thread overview]
Message-ID: <20190211141059.fiflyepnz6olxjna@esperanza> (raw)
In-Reply-To: <20190211124156.GB20767@chai>

On Mon, Feb 11, 2019 at 03:41:56PM +0300, Konstantin Osipov wrote:
> * Vladimir Davydov <vdavydov.dev@gmail.com> [19/02/11 15:34]:
> > While a replica is bootstrapped from a remote master, vinyl engine
> > may need to perform compaction, which means that it may write to
> > the _vinyl_deferred_delete system space. Compaction proceeds fully
> > asynchronously, i.e. a write may occur after the join stage is
> > complete, but before the WAL is initialized, in which case the new
> > replica will crash. To make sure a race like that won't happen, let's
> > setup WAL before making the initial checkpoint. The WAL writer is now
> > initialized right before starting the WAL thread and so we don't need
> > to split WAL struct into the thread and the writer anymore.
> > 
> > Closes #3968
> 
> OK to push.

Pushed to 2.1 and 1.10.

      reply	other threads:[~2019-02-11 14:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-08 16:51 [PATCH] box: delay all writes before wal writer is initialized Vladimir Davydov
2019-02-11 12:34 ` [PATCH v2] box: enable WAL before making initial checkpoint Vladimir Davydov
2019-02-11 12:41   ` Konstantin Osipov
2019-02-11 14:10     ` Vladimir Davydov [this message]

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=20190211141059.fiflyepnz6olxjna@esperanza \
    --to=vdavydov.dev@gmail.com \
    --cc=kostja@tarantool.org \
    --cc=tarantool-patches@freelists.org \
    --subject='Re: [PATCH v2] box: enable WAL before making initial checkpoint' \
    /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