[Tarantool-patches] [PATCH 0/2] Qsync crash on WAL write fail

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Mon Jul 20 23:43:04 MSK 2020


The patchset fixes the crash when a synchronous transaction
couldn't to local master's WAL, getting an error from inside of
the WAL thread.

Note, the test is added to the existing file instead of creating
a new one intentionally. It is not so cheap to create new instance
for each new test, and also would complicate running all qsync
tests by prefix like this: `python test-run.py replication/qsync`.
Besides, the test is simple. Copy-pastable to console not counting
test_run:switch() calls.

Branch: http://github.com/tarantool/tarantool/tree/gerold103/gh-5146-qsync-crash
Issue: https://github.com/tarantool/tarantool/issues/5146

Vladislav Shpilevoy (2):
  txn: single failure point for WAL and TX commit errors
  txn: single failure point for WAL and TX async commit errors

 src/box/txn.c                          | 88 +++++++++++---------------
 test/replication/qsync_errinj.result   | 69 ++++++++++++++++++++
 test/replication/qsync_errinj.test.lua | 28 ++++++++
 3 files changed, 134 insertions(+), 51 deletions(-)

-- 
2.21.1 (Apple Git-122.3)



More information about the Tarantool-patches mailing list