From: Georgy Kirichenko <georgy@tarantool.org> To: tarantool-patches@freelists.org Cc: Georgy Kirichenko <georgy@tarantool.org> Subject: [tarantool-patches] [PATCH 00/10] Transaction refactoring Date: Fri, 19 Apr 2019 15:43:56 +0300 [thread overview] Message-ID: <cover.1555677159.git.georgy@tarantool.org> (raw) This patch set is focused on tow major option: 1. make a transaction and a fiber independent from one another 2. make a transaction commit asynchronous. The first one detached transaction from fiber and requires for a separate transaction memory region for each transaction to store the transaction itself, their journal entry and rows data. The second one allows to have more than one transaction per fiber in fly and it is a prerequisite for a parallel applier. Issue: https://github.com/tarantool/tarantool/issues/1254 Branch: https://github.com/tarantool/tarantool/tree/g.kirichenko/gh-1254-txn-refactoring Georgy Kirichenko (10): Introduce a txn memory region Alloc journal entry on a txn memory region Encode a dml statement to a transaction memory region Get rid of autocommit from a txn structure Get rid of fiber_gc from txn_rollback Require for txn in case of txn_begin_stmt/txn_rollback_stmt Remove fiber from a journal_entry structure Use mempool to alloc wal messages Enable asyncronous wal writes Introduce asynchronous txn commit src/box/applier.cc | 36 ++++- src/box/box.cc | 113 +++++++++++--- src/box/call.c | 16 +- src/box/errcode.h | 2 +- src/box/index.cc | 10 +- src/box/journal.c | 27 +++- src/box/journal.h | 66 ++++++++- src/box/memtx_engine.c | 11 +- src/box/memtx_space.c | 8 +- src/box/request.c | 2 +- src/box/sql.c | 2 +- src/box/sql/vdbe.c | 2 +- src/box/txn.c | 275 +++++++++++++++++++++++------------ src/box/txn.h | 35 +++-- src/box/vinyl.c | 12 +- src/box/vy_log.c | 4 +- src/box/vy_scheduler.c | 12 +- src/box/vy_stmt.c | 6 +- src/box/wal.c | 95 +++++++++--- src/box/xrow.c | 21 ++- src/box/xrow.h | 12 +- test/box/misc.result | 2 +- test/engine/savepoint.result | 2 +- test/sql/savepoints.result | 6 +- 24 files changed, 566 insertions(+), 211 deletions(-) -- 2.21.0
next reply other threads:[~2019-04-19 12:44 UTC|newest] Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-04-19 12:43 Georgy Kirichenko [this message] 2019-04-19 12:43 ` [tarantool-patches] [PATCH 01/10] Introduce a txn memory region Georgy Kirichenko 2019-04-24 18:20 ` [tarantool-patches] " Konstantin Osipov 2019-04-19 12:43 ` [tarantool-patches] [PATCH 02/10] Alloc journal entry on " Georgy Kirichenko 2019-04-24 18:21 ` [tarantool-patches] " Konstantin Osipov 2019-04-19 12:43 ` [tarantool-patches] [PATCH 03/10] Encode a dml statement to a transaction " Georgy Kirichenko 2019-04-24 18:28 ` [tarantool-patches] " Konstantin Osipov 2019-04-19 12:44 ` [tarantool-patches] [PATCH 04/10] Get rid of autocommit from a txn structure Georgy Kirichenko 2019-04-24 19:07 ` [tarantool-patches] " Konstantin Osipov 2019-04-19 12:44 ` [tarantool-patches] [PATCH 05/10] Get rid of fiber_gc from txn_rollback Georgy Kirichenko 2019-04-24 19:12 ` [tarantool-patches] " Konstantin Osipov 2019-04-19 12:44 ` [tarantool-patches] [PATCH 06/10] Require for txn in case of txn_begin_stmt/txn_rollback_stmt Georgy Kirichenko 2019-04-24 19:13 ` [tarantool-patches] " Konstantin Osipov 2019-04-19 12:44 ` [tarantool-patches] [PATCH 07/10] Remove fiber from a journal_entry structure Georgy Kirichenko 2019-04-24 19:16 ` [tarantool-patches] " Konstantin Osipov 2019-04-19 12:44 ` [tarantool-patches] [PATCH 08/10] Use mempool to alloc wal messages Georgy Kirichenko 2019-04-24 19:18 ` [tarantool-patches] " Konstantin Osipov 2019-04-19 12:44 ` [tarantool-patches] [PATCH 09/10] Enable asyncronous wal writes Georgy Kirichenko 2019-04-24 19:19 ` [tarantool-patches] " Konstantin Osipov 2019-04-19 12:44 ` [tarantool-patches] [PATCH 10/10] Introduce asynchronous txn commit Georgy Kirichenko 2019-04-24 19:20 ` [tarantool-patches] " Konstantin Osipov
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.1555677159.git.georgy@tarantool.org \ --to=georgy@tarantool.org \ --cc=tarantool-patches@freelists.org \ --subject='Re: [tarantool-patches] [PATCH 00/10] Transaction refactoring' \ /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