Tarantool development patches archive
 help / color / mirror / Atom feed
* [PATCH 0/5] alter: fix WAL error handling
@ 2018-04-03 17:37 Vladimir Davydov
  2018-04-03 17:37 ` [PATCH 1/5] memtx: rtree: remove pointless index_vtab::begin_build implementation Vladimir Davydov
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Vladimir Davydov @ 2018-04-03 17:37 UTC (permalink / raw)
  To: kostja; +Cc: tarantool-patches

This patch set fixes the use-after-free error that may occur if DDL
fails due to WAL error, see [1]. The code is available by the link [2].
It is based on top of [3, 4].

Note, the first three patches are trivial cleanups. They are not
directly connected to the issue in question, but they are all related to
the problem of vinyl space alter [5], which I'm currently working on.
The real work is done by patches 4 and 5.

[1] https://github.com/tarantool/tarantool/issues/3289
[2] https://github.com/tarantool/tarantool/commits/gh-3289-alter-fix-wal-error-handling
[3] https://github.com/tarantool/tarantool/commits/vy-allow-to-extend-key-def
[4] https://www.freelists.org/post/tarantool-patches/PATCH-0012-vinyl-allow-to-extend-key-def-of-nonempty-index
[5] https://github.com/tarantool/tarantool/issues/1653

Vladimir Davydov (5):
  memtx: rtree: remove pointless index_vtab::begin_build implementation
  memtx: don't call begin_buid and end_build for new pk after recovery
  vinyl: use disk_format in vy_run_rebuild_index
  vinyl: do not use space_vtab::commit_alter for preparing new indexes
  alter: call space_vtab::commit_alter after WAL write

 src/box/alter.cc         | 23 +++-----------
 src/box/memtx_rtree.c    |  9 +-----
 src/box/memtx_space.c    | 38 ++++++++---------------
 src/box/memtx_space.h    |  6 ++++
 src/box/vinyl.c          | 79 +++++++++++++++++++++---------------------------
 src/box/vy_lsm.c         |  2 +-
 src/box/vy_lsm.h         | 17 +++++++++++
 src/box/vy_run.c         |  4 +--
 src/box/vy_run.h         | 14 +++++----
 test/box/errinj.result   | 66 ++++++++++++++++++++++++++++++++++++++++
 test/box/errinj.test.lua | 18 +++++++++++
 11 files changed, 170 insertions(+), 106 deletions(-)

-- 
2.11.0

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-04-06 10:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-03 17:37 [PATCH 0/5] alter: fix WAL error handling Vladimir Davydov
2018-04-03 17:37 ` [PATCH 1/5] memtx: rtree: remove pointless index_vtab::begin_build implementation Vladimir Davydov
2018-04-05 20:25   ` Konstantin Osipov
2018-04-03 17:37 ` [PATCH 2/5] memtx: don't call begin_buid and end_build for new pk after recovery Vladimir Davydov
2018-04-03 17:37 ` [PATCH 3/5] vinyl: use disk_format in vy_run_rebuild_index Vladimir Davydov
2018-04-05 20:25   ` Konstantin Osipov
2018-04-03 17:37 ` [PATCH 4/5] vinyl: do not use space_vtab::commit_alter for preparing new indexes Vladimir Davydov
2018-04-03 17:37 ` [PATCH 5/5] alter: call space_vtab::commit_alter after WAL write Vladimir Davydov
2018-04-05 20:37   ` Konstantin Osipov
2018-04-06 10:59     ` Vladimir Davydov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox