[tarantool-patches] [PATCH v3 0/5] Transaction in replication protocol
Georgy Kirichenko
georgy at tarantool.org
Fri Mar 22 15:06:05 MSK 2019
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
More information about the Tarantool-patches
mailing list