From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpng3.m.smailru.net (smtpng3.m.smailru.net [94.100.177.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id D4F97445320 for ; Fri, 31 Jul 2020 01:37:47 +0300 (MSK) From: Vladislav Shpilevoy Date: Fri, 31 Jul 2020 00:37:42 +0200 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 0/3] Qsync tricky crashes List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org, gorcunov@gmail.com The patchset fixes 2 crashes in qsync. 5185 wasn't reproduced, but a similar test gave another crash, fixed here. Branch: http://github.com/tarantool/tarantool/tree/gerold103/gh-5185-5195-qsync-crashes Issue: https://github.com/tarantool/tarantool/issues/5185 Issue: https://github.com/tarantool/tarantool/issues/5195 @ChangeLog * Fixed a crash when replica cleared synchronous transaction queue, while it was not empty on master (gh-5195). * Fixed a crash when synchronous transaction rollback and confirm could be written simultaneously for the same LSN (gh-5185). Vladislav Shpilevoy (3): txn_limbo: handle ROLLBACK during CONFIRM txn_limbo: handle CONFIRM during ROLLBACK txn_limbo: handle duplicate ACKs src/box/txn_limbo.c | 55 ++++- .../gh-5195-qsync-replica-write.result | 156 ++++++++++++ .../gh-5195-qsync-replica-write.test.lua | 68 +++++ test/replication/qsync_errinj.result | 232 ++++++++++++++++++ test/replication/qsync_errinj.test.lua | 105 ++++++++ 5 files changed, 606 insertions(+), 10 deletions(-) create mode 100644 test/replication/gh-5195-qsync-replica-write.result create mode 100644 test/replication/gh-5195-qsync-replica-write.test.lua -- 2.21.1 (Apple Git-122.3)