From: Vladimir Davydov <vdavydov.dev@gmail.com> To: kostja@tarantool.org Cc: tarantool-patches@freelists.org Subject: [PATCH v2 0/2] alter: fix WAL error handling Date: Fri, 6 Apr 2018 16:15:30 +0300 [thread overview] Message-ID: <cover.1523019950.git.vdavydov.dev@gmail.com> (raw) This patch set fixes the use-after-free error that may occur if DDL fails due to WAL error. For more details see the GitHub ticket and patch 1. Patch 2 is a follow-up patch that removes some code that becomes useless after patch 1 is applied. https://github.com/tarantool/tarantool/issues/3289 https://github.com/tarantool/tarantool/commits/gh-3289-alter-fix-wal-error-handling Changes in v2: - Instead of moving space_vtab::commit_alter invocation after WAL, delete tuples from index_vtab::commit_drop and zap commit_alter callback altogether. v1: https://www.freelists.org/post/tarantool-patches/PATCH-05-alter-fix-WAL-error-handling Vladimir Davydov (2): memtx: do not use space_vtab::commit_alter for freeing tuples alter: zap space_vtab::commit_alter src/box/alter.cc | 21 ++------------- src/box/memtx_bitset.c | 4 +-- src/box/memtx_engine.c | 47 ++++++++++++++++++++++++++++++++++ src/box/memtx_engine.h | 10 ++++++++ src/box/memtx_hash.c | 4 +-- src/box/memtx_rtree.c | 4 +-- src/box/memtx_space.c | 64 +++++++++++----------------------------------- src/box/memtx_tree.c | 4 +-- src/box/space.h | 15 ----------- src/box/sysview_engine.c | 8 ------ src/box/vinyl.c | 8 ------ test/box/errinj.result | 66 ++++++++++++++++++++++++++++++++++++++++++++++++ test/box/errinj.test.lua | 17 +++++++++++++ 13 files changed, 165 insertions(+), 107 deletions(-) -- 2.11.0
next reply other threads:[~2018-04-06 13:15 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-04-06 13:15 Vladimir Davydov [this message] 2018-04-06 13:15 ` [PATCH v2 1/2] memtx: do not use space_vtab::commit_alter for freeing tuples Vladimir Davydov 2018-04-06 14:08 ` Konstantin Osipov 2018-04-06 14:19 ` Vladimir Davydov 2018-04-06 15:29 ` Vladimir Davydov 2018-04-06 13:15 ` [PATCH v2 2/2] alter: zap space_vtab::commit_alter Vladimir Davydov 2018-04-06 14:10 ` Konstantin Osipov 2018-04-06 14:23 ` Vladimir Davydov 2018-04-06 14:28 ` Konstantin Osipov 2018-04-06 15:25 ` Vladimir Davydov
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.1523019950.git.vdavydov.dev@gmail.com \ --to=vdavydov.dev@gmail.com \ --cc=kostja@tarantool.org \ --cc=tarantool-patches@freelists.org \ --subject='Re: [PATCH v2 0/2] alter: fix WAL error handling' \ /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