From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp62.i.mail.ru (smtp62.i.mail.ru [217.69.128.42]) (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 D4B29469710 for ; Fri, 8 May 2020 14:16:28 +0300 (MSK) References: <20200420131115.42047-1-sergepetrenko@tarantool.org> <52ac079d-3439-a190-c418-52212a83683c@tarantool.org> <7cc455cc-185f-b4cb-17bb-13e3528c63c0@tarantool.org> <586c95c1-8bec-8205-402b-24c07ebf603d@tarantool.org> <41add5ba-4e48-0242-49bc-6db123466f4b@tarantool.org> <9ebb6d36-c3d1-0d81-ed83-5861c270a73c@tarantool.org> From: Serge Petrenko Message-ID: Date: Fri, 8 May 2020 14:16:28 +0300 MIME-Version: 1.0 In-Reply-To: <9ebb6d36-c3d1-0d81-ed83-5861c270a73c@tarantool.org> Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: 8bit Content-Language: ru Subject: Re: [Tarantool-patches] [PATCH] replication: remove unnecessary errors on replicating from an anonymous instance List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vladislav Shpilevoy Cc: tarantool-patches@dev.tarantool.org 08.05.2020 00:53, Vladislav Shpilevoy пишет: > Hi! Thanks for the fixes! > >>>> @@ -429,36 +430,10 @@ test_run:cmd('set variable repl_source to "replica_anon1.listen"') >>>>   box.cfg{replication=repl_source} >>>>    | --- >>>>    | ... >>>> - >>>> -test_run:cmd('switch default') >>>> - | --- >>>> - | - true >>>> - | ... >>>> -box.space.test:insert{2} >>>> - | --- >>>> - | - [2] >>>> - | ... >>>> - >>>> -test_run:cmd('switch replica_anon1') >>>> - | --- >>>> - | - true >>>> - | ... >>>> --- Check that the new replica follows an anonymous one. >>>> -test_run:wait_downstream(2, {status='follow'}) >>>> +test_run:wait_log('replica', 'ER_UNSUPPORTED: Anonymous replica does not support non.anonymous followers.', nil, 10) >>> 2. Perhaps 'non-anonymous' instead of 'non.anonymous'? >> Dot  matches anything, and I couldn't find a way to escape '-', it must be a special symbol of sorts. >> So let it be 'non.anonymous'. > I again forgot how regular expressions look in Lua. Yeah, sure then, '.' is fine. > Talking of escape symbol - it is % Didn't know that, thanks! -- Serge Petrenko