Tarantool development patches archive
 help / color / mirror / Atom feed
From: Konstantin Osipov <kostja@tarantool.org>
To: Vladimir Davydov <vdavydov.dev@gmail.com>
Cc: tarantool-patches@freelists.org
Subject: Re: [PATCH] vinyl: abort rw transactions before DDL
Date: Fri, 24 Aug 2018 00:10:57 +0300	[thread overview]
Message-ID: <20180823211057.GB30863@chai> (raw)
In-Reply-To: <e5c1b5214b2f48b7d8a5fee471d35527d9c9d650.1533309498.git.vdavydov.dev@gmail.com>

* 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 both exclude read transactions and reduce the amount of
aborted transactions a great deal.


-- 
Konstantin Osipov, Moscow, Russia, +7 903 626 22 32
http://tarantool.io - www.twitter.com/kostja_osipov

  reply	other threads:[~2018-08-23 21:10 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 [this message]
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=20180823211057.GB30863@chai \
    --to=kostja@tarantool.org \
    --cc=tarantool-patches@freelists.org \
    --cc=vdavydov.dev@gmail.com \
    --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