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 A427E270C5 for ; Tue, 12 Feb 2019 15:02:26 -0500 (EST) 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 Nn9pwMh71SNk for ; Tue, 12 Feb 2019 15:02:26 -0500 (EST) Received: from smtp45.i.mail.ru (smtp45.i.mail.ru [94.100.177.105]) (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 4F86D270C1 for ; Tue, 12 Feb 2019 15:02:26 -0500 (EST) From: Georgy Kirichenko Subject: [tarantool-patches] [PATCH v3 0/2] Transaction boundaries in replication protocol Date: Tue, 12 Feb 2019 23:04:30 +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 patchset introduces transactional replication and consist of two commits: * the first one forms transaction boundaries in a xlog * the second one forms transactions in applier buffers and then applies them with correct begin/commit boundaries. Note: distributed transaction are not supported so we form a separate transaction for all local triggers effects. Changes in v3: - Change encoding in order to achieve better compaction - Transactional replication test Changes in v2: - Rebased against latest 2.1 - Fixed extraction for local replication effects Issue: https://github.com/tarantool/tarantool/issues/2798 Branch: https://github.com/tarantool/tarantool/tree/g.kirichenko/gh-2798-transaction-boundaries Georgy Kirichenko (2): Journal transaction boundaries Transaction support for applier src/box/applier.cc | 185 +++++++++++++++----- src/box/iproto_constants.c | 4 +- src/box/iproto_constants.h | 7 + src/box/txn.c | 21 ++- src/box/txn.h | 2 + src/box/wal.c | 28 ++- src/box/xrow.c | 36 ++++ src/box/xrow.h | 4 +- test/replication/transaction.result | 240 ++++++++++++++++++++++++++ test/replication/transaction.test.lua | 86 +++++++++ test/unit/xrow.cc | 2 + 11 files changed, 564 insertions(+), 51 deletions(-) create mode 100644 test/replication/transaction.result create mode 100644 test/replication/transaction.test.lua -- 2.20.1