Tarantool development patches archive
 help / color / mirror / Atom feed
From: Georgy Kirichenko <georgy@tarantool.org>
To: tarantool-patches@freelists.org
Cc: Georgy Kirichenko <georgy@tarantool.org>
Subject: [tarantool-patches] [PATCH v3 0/5] Transaction in replication protocol
Date: Fri, 22 Mar 2019 15:06:05 +0300	[thread overview]
Message-ID: <cover.1553255718.git.georgy@tarantool.org> (raw)

This patch set introduces a transactional replication mode into an
applier. There are five patches:
 * Fix truncate rollback in case of failures
 * Update lua schema as soon as space cache updates
 * Allow for ddl operations to be between begin and commit
 * Apply a whole transaction within begin/commit boundaries
 * Raise an error in case of distributed transaction (follow up for
   27283debc)

It is a complete redesign except for applier patch which has some
refactoring according to the last review comments.

Issue: https://github.com/tarantool/tarantool/issues/2798
Branch: https://github.com/tarantool/tarantool/tree/g.kirichenko/gh-2798-transaction-boundaries

Georgy Kirichenko (5):
  Abort vinyl index creation in case of truncation rollback
  Synchronize lua schema update with space cache
  Require for single statement not autocommit in case of ddl
  Transaction support for applier
  Raise an error if remote transaction produces non-local changes

 src/box/alter.cc                      |  26 ++-
 src/box/applier.cc                    | 232 ++++++++++++++++++------
 src/box/memtx_engine.c                |  20 +--
 src/box/txn.c                         |  24 ++-
 src/box/txn.h                         |  14 ++
 test/box/ddl.result                   |   8 +-
 test/box/ddl.test.lua                 |   4 +-
 test/box/transaction.result           |  53 ++----
 test/box/transaction.test.lua         |  27 ++-
 test/engine/ddl.result                |  92 ++++++++++
 test/engine/ddl.test.lua              |  55 ++++++
 test/engine/errinj.result             |  53 ++++++
 test/engine/errinj.test.lua           |  15 ++
 test/engine/suite.ini                 |   1 +
 test/engine/truncate.result           |   3 +-
 test/replication/on_replace.result    |  44 ++++-
 test/replication/on_replace.test.lua  |  20 ++-
 test/replication/transaction.result   | 242 ++++++++++++++++++++++++++
 test/replication/transaction.test.lua |  86 +++++++++
 test/sql-tap/trigger1.test.lua        |  12 +-
 test/sql/delete.result                |   8 +-
 test/sql/delete.test.lua              |   3 +-
 22 files changed, 877 insertions(+), 165 deletions(-)
 create mode 100644 test/engine/errinj.result
 create mode 100644 test/engine/errinj.test.lua
 create mode 100644 test/replication/transaction.result
 create mode 100644 test/replication/transaction.test.lua

-- 
2.21.0

             reply	other threads:[~2019-03-22 12:06 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-22 12:06 Georgy Kirichenko [this message]
2019-03-22 12:06 ` [tarantool-patches] [PATCH v3 1/5] Abort vinyl index creation in case of truncation rollback Georgy Kirichenko
2019-03-27  9:59   ` Vladimir Davydov
2019-03-22 12:06 ` [tarantool-patches] [PATCH v3 2/5] Synchronize lua schema update with space cache Georgy Kirichenko
2019-03-27 10:03   ` Vladimir Davydov
2019-03-27 10:32     ` Vladimir Davydov
2019-03-27 11:45       ` [tarantool-patches] " Konstantin Osipov
2019-03-22 12:06 ` [tarantool-patches] [PATCH v3 3/5] Require for single statement not autocommit in case of ddl Georgy Kirichenko
2019-03-27 10:49   ` Vladimir Davydov
2019-03-22 12:06 ` [tarantool-patches] [PATCH v3 4/5] Transaction support for applier Georgy Kirichenko
2019-03-27 11:41   ` Vladimir Davydov
2019-03-27 11:48   ` Vladimir Davydov
2019-03-22 12:06 ` [tarantool-patches] [PATCH v3 5/5] Raise an error if remote transaction produces non-local changes Georgy Kirichenko
2019-03-27 12:06   ` 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=cover.1553255718.git.georgy@tarantool.org \
    --to=georgy@tarantool.org \
    --cc=tarantool-patches@freelists.org \
    --subject='Re: [tarantool-patches] [PATCH v3 0/5] Transaction in replication protocol' \
    /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