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 E302022BAF for ; Mon, 6 Aug 2018 06:59:15 -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 OIwgJN5gOyQg for ; Mon, 6 Aug 2018 06:59:15 -0400 (EDT) Received: from smtp32.i.mail.ru (smtp32.i.mail.ru [94.100.177.92]) (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 1E2AC20F91 for ; Mon, 6 Aug 2018 06:59:14 -0400 (EDT) Received: from [185.6.245.156] (port=41096 helo=[100.96.166.235]) by smtp32.i.mail.ru with esmtpa (envelope-from ) id 1fmdEH-000479-2Y for tarantool-patches@freelists.org; Mon, 06 Aug 2018 13:59:13 +0300 Subject: [tarantool-patches] Re: [PATCH 4/4] Introduce storage reload evolution References: <1e067dd68d69270ccf5aea2ab73548ebd9a0f2ad.1532940401.git.avkhatskevich@tarantool.org> <3d8a81f7-33a6-bf1d-809f-ae5b95730a64@tarantool.org> <83a958f1-e47c-cf5c-7996-3983b7a28b9f@tarantool.org> <264b6bab-ba8a-2bd4-f730-fe83ad52279b@tarantool.org> <05442d0e-1e82-4b41-1837-dc034b19dd60@tarantool.org> From: Alex Khatskevich Message-ID: Date: Mon, 6 Aug 2018 13:59:11 +0300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: 8bit Content-Language: en-US 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 Thanks. It helped. It is strange, but `ls` differs mtch on mac and linuxes. I have changed `ls --ignore` to `ls | grep -v`. Please, try again. On 02.08.2018 14:46, Vladislav Shpilevoy wrote: > Maybe this can help: > > ------------------------- LOG ------------------------------ > > Starting instance test... > Run console at > unix/:/Users/v.shpilevoy/Work/Repositories/vshard/test/var/001_reload_evolution/test.control > started > mkdir > /Users/v.shpilevoy/Work/Repositories/vshard/test/var/001_reload_evolution/test > 2018-08-02 14:38:47.277 [82140] main/101/test C> Tarantool > 1.9.1-58-g3c26b86d0 > 2018-08-02 14:38:47.278 [82140] main/101/test C> log level 5 > 2018-08-02 14:38:47.278 [82140] main/101/test I> mapping 268435456 > bytes for memtx tuple arena... > 2018-08-02 14:38:47.278 [82140] main/101/test I> mapping 134217728 > bytes for vinyl tuple arena... > 2018-08-02 14:38:47.286 [82140] iproto/101/main I> binary: bound to > [::1]:38707 > 2018-08-02 14:38:47.286 [82140] main/101/test I> initializing an empty > data directory > 2018-08-02 14:38:47.311 [82140] snapshot/101/main I> saving snapshot > `/Users/v.shpilevoy/Work/Repositories/vshard/test/var/001_reload_evolution/test/00000000000000000000.snap.inprogress' > 2018-08-02 14:38:47.318 [82140] snapshot/101/main I> done > 2018-08-02 14:38:47.318 [82140] main/101/test I> ready to accept requests > 2018-08-02 14:38:47.318 [82140] main/105/checkpoint_daemon I> started > 2018-08-02 14:38:47.319 [82140] main/105/checkpoint_daemon I> > scheduled the next snapshot at Thu Aug  2 16:27:59 2018 > 2018-08-02 14:38:47.320 [82140] main/106/console/::1:38618 I> started > 2018-08-02 14:38:47.321 [82140] main C> entering the event loop > ls: illegal option -- - > usage: ls [-ABCFGHLOPRSTUWabcdefghiklmnopqrstuwx1] [file ...] > usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file >        cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... > target_directory > Your branch is ahead of 'origin/master' by 2 commits. >   (use "git push" to publish your local commits) > Note: checking out '8fbf81c~1'. > > You are in 'detached HEAD' state. You can look around, make experimental > changes and commit them, and you can discard any commits you make in this > state without impacting any branches by performing another checkout. > > If you want to create a new branch to retain commits you create, you may > do so (now or later) by using -b with the checkout command again. > Example: > >   git checkout -b > > HEAD is now at e4f8c21... Fix races related to object outdating > 2018-08-02 14:38:47.591 [82140] main C> got signal 15 - Terminated: 15 > > > ------------------------ RESULT ------------------------------ > > test_run = require('test_run').new() > --- > ... > git_util = require('lua_libs.git_util') > --- > ... > util = require('lua_libs.util') > --- > ... > vshard_copy_path = util.BUILDDIR .. '/test/var/vshard_git_tree_copy' > --- > ... > evolution_log = > git_util.log_hashes({args='vshard/storage/reload_evolution.lua', > dir=util.SOURCEDIR}) > --- > ... > -- Cleanup the directory after a previous build. > _ = os.execute('rm -rf ' .. vshard_copy_path) > --- > ... > -- 1. `git worktree` cannot be used because PACKPACK mounts > -- `/source/` in `ro` mode. > -- 2. Just `cp -rf` cannot be used due to a little different > -- behavior in Centos 7. > _ = os.execute('mkdir ' .. vshard_copy_path) > --- > ... > _ = os.execute("cd " .. util.SOURCEDIR .. ' && cp -rf `ls -A > --ignore=build` ' .. vshard_copy_path) > --- > ... > -- Checkout the first commit with a reload_evolution mechanism. > git_util.exec('checkout', {args='-f', dir=vshard_copy_path}) > --- > ... > git_util.exec('checkout', {args=evolution_log[#evolution_log] .. '~1', > dir=vshard_copy_path}) > --- > ... > REPLICASET_1 = { 'storage_1_a', 'storage_1_b' } > --- > ... > REPLICASET_2 = { 'storage_2_a', 'storage_2_b' } > --- > ... > test_run:create_cluster(REPLICASET_1, 'reload_evolution') > > Here the test is finished.