From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 24 Aug 2018 14:29:09 +0300 From: Konstantin Osipov Subject: Re: [PATCH v2] vinyl: abort rw transactions before DDL Message-ID: <20180824112909.GD14604@chai> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: To: Vladimir Davydov Cc: tarantool-patches@freelists.org List-ID: * Vladimir Davydov [18/08/24 13:52]: > When building a new index or checking a space format, we propagate > changes done to the space during the procedure with the aid of an > on_replace trigger. The problem is there may be transactions with a > non-empty write set when we install the trigger. Changes done by > those transactions will not be seen by the trigger and so they won't > make it to the new index, resulting in an inconsistency between the > primary and secondary indexes. To fix this issue, let's abort all rw > transactions affecting the space after setting the trigger. Note, > transactions that reached WAL can't be aborted so we wait for them to > complete. > > Closes #3458 OK to push. -- Konstantin Osipov, Moscow, Russia, +7 903 626 22 32 http://tarantool.io - www.twitter.com/kostja_osipov