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 E870A212BB for ; Sun, 10 Mar 2019 16:21:32 -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 hxyYhmucRNDo for ; Sun, 10 Mar 2019 16:21:32 -0400 (EDT) Received: from smtp40.i.mail.ru (smtp40.i.mail.ru [94.100.177.100]) (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 38E16211B3 for ; Sun, 10 Mar 2019 16:21:32 -0400 (EDT) From: Georgy Kirichenko Subject: [tarantool-patches] [PATCH v3 0/2] Transaction boundaries for applier Date: Sun, 10 Mar 2019 23:21:25 +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 consists of thwo patches. * The first one creates a separate journal transaction for all local effects in case of replication what is needed to be able to replicate such effects back. * The second one turns applier into transaction mode - an applier first fetches the whole transaction and then applies all rows within transaction boundaries. Changes in v3: * rebased against latest 2.1. * use n_local_rows/n_remote_rows counters. * fixes and refactoring according to review. Changes in v2: * Get rid of apply_initial_journal_row and apply_row from box.cc and purge box dependency from applier. * txn.cc and txn.h changes moved into a separate commit. * applier_read_tx uses stailq to form a list of rows in a transaction. * use exceptions for applier routines. * slight changes according to review. Issue: https://github.com/tarantool/tarantool/issues/2798 Branch: https://github.com/tarantool/tarantool/tree/g.kirichenko/gh-2798-transaction-boundaries Georgy Kirichenko (2): Write rows without a lsn to the transaction tail Transaction support for applier src/box/applier.cc | 219 +++++++++++++++++------ src/box/txn.c | 42 +++-- src/box/txn.h | 6 +- test/replication/transaction.result | 242 ++++++++++++++++++++++++++ test/replication/transaction.test.lua | 86 +++++++++ 5 files changed, 525 insertions(+), 70 deletions(-) create mode 100644 test/replication/transaction.result create mode 100644 test/replication/transaction.test.lua -- 2.21.0