Tarantool development patches archive
 help / color / mirror / Atom feed
From: Vladimir Davydov <vdavydov.dev@gmail.com>
To: kostja@tarantool.org
Cc: tarantool-patches@freelists.org
Subject: Re: [PATCH] vinyl: flush transactions before setting trigger on altered space
Date: Fri, 3 Aug 2018 18:17:00 +0300	[thread overview]
Message-ID: <20180803151700.shaatbqui63xbjt3@esperanza> (raw)
In-Reply-To: <44e0fcd4d14ae056258c8a55a2b68caafac4f356.1533119343.git.vdavydov.dev@gmail.com>

On Wed, Aug 01, 2018 at 01:44:10PM +0300, Vladimir Davydov wrote:
> When building a new index or checking a space format, we propagate
> changes done to the space during the procedure with the aid of an
> on_replace trigger. The problem is there may be transactions with a
> non-empty write set when we install the trigger. Changes done by
> those transactions will not be seen by the trigger and so they won't
> make it to the new index, resulting in an inconsistency between the
> primary and secondary indexes. To fix this issue, let's flush all
> active transactions after installing the trigger. If a transaction
> fails to commit or rollback within box.cfg.vinyl_timeout seconds,
> DDL simply aborts it.
> 

> Closes #3458
> ---

Kostja said that we shouldn't introduce any kind of ad-hoc locking in
vinyl tx manager, because it will make it difficult to introduce global
tx manager locking infrastructure in the future. Instead, he suggested
to unconditionally abort all transactions that started before DDL.
The patch will follow shortly.

  reply	other threads:[~2018-08-03 15:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-01 10:44 Vladimir Davydov
2018-08-03 15:17 ` Vladimir Davydov [this message]
2018-08-03 15:21   ` [PATCH] vinyl: abort rw transactions before DDL Vladimir Davydov
2018-08-23 21:10     ` Konstantin Osipov
2018-08-24  8:28       ` 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=20180803151700.shaatbqui63xbjt3@esperanza \
    --to=vdavydov.dev@gmail.com \
    --cc=kostja@tarantool.org \
    --cc=tarantool-patches@freelists.org \
    --subject='Re: [PATCH] vinyl: flush transactions before setting trigger on altered space' \
    /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