From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 5C9FF2AA0E for ; Fri, 22 Mar 2019 08:06:16 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TSJuzk_pFnu2 for ; Fri, 22 Mar 2019 08:06:16 -0400 (EDT) Received: from smtp16.mail.ru (smtp16.mail.ru [94.100.176.153]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id EA3722AA14 for ; Fri, 22 Mar 2019 08:06:15 -0400 (EDT) From: Georgy Kirichenko Subject: [tarantool-patches] [PATCH v3 0/5] Transaction in replication protocol Date: Fri, 22 Mar 2019 15:06:05 +0300 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: tarantool-patches@freelists.org Cc: Georgy Kirichenko 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