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] vinyl: abort rw transactions before DDL
Date: Fri, 24 Aug 2018 11:28:11 +0300	[thread overview]
Message-ID: <20180824082811.3txwuebzlnbtrebk@esperanza> (raw)
In-Reply-To: <20180823211057.GB30863@chai>

On Fri, Aug 24, 2018 at 12:10:57AM +0300, Konstantin Osipov wrote:
> * Vladimir Davydov <vdavydov.dev@gmail.com> [18/08/03 18:23]:
> > 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 abort all
> > rw transactions after setting the trigger. Note, transactions that
> > reached WAL can't be aborted so we wait for them to complete.
> 
> If I may nitpick:
> - we could have a list per lsm, not a global one in tx manager
> - abort only the transactions which are in the list of this lsm

This would be a little bit more difficult to implement, because the same
transaction can modify multiple LSM trees, but yeah, it makes sense.
I'll look into tihs.

> 
> This would both exclude read transactions and reduce the amount of
> aborted transactions a great deal.

      reply	other threads:[~2018-08-24  8:28 UTC|newest]

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