From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 80BC12ADC8 for ; Thu, 28 Mar 2019 10:05:59 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MlL1Dgf8PCjM for ; Thu, 28 Mar 2019 10:05:59 -0400 (EDT) Received: from smtp63.i.mail.ru (smtp63.i.mail.ru [217.69.128.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 3A6502ADC3 for ; Thu, 28 Mar 2019 10:05:59 -0400 (EDT) Received: by smtp63.i.mail.ru with esmtpa (envelope-from ) id 1h9VfJ-0007L4-CK for tarantool-patches@freelists.org; Thu, 28 Mar 2019 17:05:57 +0300 Date: Thu, 28 Mar 2019 17:05:57 +0300 From: Konstantin Osipov Subject: [tarantool-patches] Re: [PATCH 2/2] vinyl: fail aborted transactions early Message-ID: <20190328140557.GC11518@chai> References: <6a374b13b7dc52ce14d8d23433efd46f3e2161cf.1553277782.git.vdavydov.dev@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: tarantool-patches@freelists.org * Vladimir Davydov [19/03/22 21:17]: > We abort transactions when switching to read-only mode, building a new > index, or reverting a statement after a failed WAL write. It's no use > to allow an aborted transaction to proceed as usual until commit - we > should fail it as early as we can to avoid wasting resources. Currently, > we do it in a rather abrupt way - by an assertion :-) This patch makes > any DML/DQL operation fail gracefully instead. > Closes #4070 OK to push. -- konstantin osipov, moscow, russia, +7 903 626 22 32 http://tarantool.io - www.twitter.com/kostja_osipov