From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp46.i.mail.ru (smtp46.i.mail.ru [94.100.177.106]) (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 2B1684696C3 for ; Fri, 3 Apr 2020 00:20:22 +0300 (MSK) Date: Fri, 3 Apr 2020 00:20:23 +0300 From: Alexander Turenko Message-ID: <20200402212023.vmpzh237zwpg5h36@tkn_work_nb> References: <65798b71932c21183072decd2cce8b2b0f88b884.1585773275.git.alexander.turenko@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <65798b71932c21183072decd2cce8b2b0f88b884.1585773275.git.alexander.turenko@tarantool.org> Subject: Re: [Tarantool-patches] [PATCH] net.box: fix fetching of schema of an old version List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vladislav Shpilevoy Cc: tarantool-patches@dev.tarantool.org On Wed, Apr 01, 2020 at 11:45:21PM +0300, Alexander Turenko wrote: > After 2.2.0-633-gaa0964ae1 ('net.box: fix schema fetching from 1.10/2.1 > servers') net.box expects that _vcollation system view exists on a > tarantool server of 2.2.1+ version. This is however not always so: a > server may be run on a new version of tarantool, but work on a schema of > an old version. > > The situation with non last schema is usual for replication cluster in > process of upgrading: all instances run on the new version of tarantool > first (no auto-upgrade is performed by tarantools in a cluster). Then > box.schema.upgrade() should be called, but the instances should be > operable even before the call. > > Before the commit net.box was unable to connect a server if it is run on > a schema without _vcollation system view (say, 2.1.3), but the server > executable is of 2.2.1 version or newer. > > Follows up #4307 > Fixes #4691 > --- > > https://github.com/tarantool/tarantool/issues/4691 > https://github.com/tarantool/tarantool/tree/Totktonada/gh-4691-net-box-connect-schema-2-1-3 Forgot to add the changelog entry. ``` ## Bugs fixed ### Lua * net.box: fixed inability to connect 2.2.1+ server before box.schema.upgrade() is called on the server (gh-4691) ```