From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 005176EC40; Fri, 13 Aug 2021 02:32:36 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 005176EC40 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1628811157; bh=Hmb17beeM5KPiNYBJ21CcbbvaYgy3ZWLH2SOAIV7Trg=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=JhEaaSBnI7ZXqD9K8yXS6KCTBMi99PgCpx71nYm5Q3oUMgYmz8m/9GBR1iajr2URE 2ctRS4TGWMzq6ocQN6uxgzbYI51HbTIwO47Xl2B1MBj7gvBNMsJEtJOPiMWLIigwTv slbgSXDI44cqRZiT9hgPdmgCeKFOeEGRfDZV9sKc= Received: from smtp29.i.mail.ru (smtp29.i.mail.ru [94.100.177.89]) (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 D4A2B6EC40 for ; Fri, 13 Aug 2021 02:32:35 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org D4A2B6EC40 Received: by smtp29.i.mail.ru with esmtpa (envelope-from ) id 1mEKBe-0002HX-No; Fri, 13 Aug 2021 02:32:35 +0300 To: vdavydov@tarantool.org, sergos@tarantool.org Date: Fri, 13 Aug 2021 02:30:30 +0300 Message-Id: X-Mailer: git-send-email 2.30.1 (Apple Git-130) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD92087353F0EC44DD9D5AC6413C25DCF08CC98B8FCC5CD86F3182A05F5380850404740793B4B44D4761F3712654A7C557E87771E7AF3A7FFE06CDDFBBE02A45617 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE736691C7D10565E03C2099A533E45F2D0395957E7521B51C2CFCAF695D4D8E9FCEA1F7E6F0F101C6778DA827A17800CE74D0D2DEF2EB846B0EA1F7E6F0F101C6723150C8DA25C47586E58E00D9D99D84E1BDDB23E98D2D38BBCA57AF85F7723F28A6B663D9D9D5218E320A97B264B7BCBCC7F00164DA146DAFE8445B8C89999728AA50765F7900637DCE3DBD6F8E38AFD389733CBF5DBD5E9C8A9BA7A39EFB766F5D81C698A659EA7CC7F00164DA146DA9985D098DBDEAEC80CABCCA60F52D7EBF6B57BC7E6449061A352F6E88A58FB86F5D81C698A659EA7E827F84554CEF5019E625A9149C048EE9ECD01F8117BC8BEE2021AF6380DFAD18AA50765F790063735872C767BF85DA227C277FBC8AE2E8B696E4123C2B4120575ECD9A6C639B01B4E70A05D1297E1BBCB5012B2E24CD356 X-B7AD71C0: AC4F5C86D027EB782CDD5689AFBDA7A213B5FB47DCBC3458834459D11680B505DD70C060F881B3E5F216D53F50F7B5EF X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975C69415AB31670C86CA7F66F0AEC095597CFCB5B4318F7A8BD9C2B6934AE262D3EE7EAB7254005DCED42F351B7DEC6346B1E0A4E2319210D9B64D260DF9561598F01A9E91200F654B068F972559010CA1C8E8E86DC7131B365E7726E8460B7C23C X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34C2BE7381A0AD3DF194A45A5BC1D8249A7B3149E7617265CD73465DC5FC23185C111B130D79C69EA71D7E09C32AA3244C4723638BB3775710863211CEDC91A2DBC3B3ADDA61883BB5927AC6DF5659F194 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2bioj0dLV0c3jbkyfhhtW7dIk+A== X-Mailru-Sender: 3B9A0136629DC9125D61937A2360A446FFC67221526E57DC83595B830F688D63F3C9263A0ABB4A09424AE0EB1F3D1D21E2978F233C3FAE6EE63DB1732555E4A8EE80603BA4A5B0BC112434F685709FCF0DA7A0AF5A3A8387 X-Mras: Ok Subject: [Tarantool-patches] [PATCH v2 0/2] allow upgrading from version 1.6 X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Serge Petrenko via Tarantool-patches Reply-To: Serge Petrenko Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Changes in v2: - Review fixes as per reviews from Sergos, Vladimir - Fix triggers being run on xlogs resulting from box.schema.ugrade() - Introduce table.equals in a separate commit. Use it to define whether some schema changes were already applied. https://github.com/tarantool/tarantool/issues/5894 https://github.com/tarantool/tarantool/tree/sp/gh-5894-1.6-upgrade Serge Petrenko (2): lua: introduce table.equals method box: allow upgrading from version 1.6 src/box/lua/load_cfg.lua | 14 + src/box/lua/upgrade.lua | 276 +++++++++++- src/lua/table.lua | 26 ++ test/app-tap/table.test.lua | 31 +- test/xlog/gh-5894-pre-1.7.7-upgrade.result | 400 ++++++++++++++++++ test/xlog/gh-5894-pre-1.7.7-upgrade.test.lua | 77 ++++ .../1.6.8/gh-5894-pre-1.7.7-upgrade/fill.lua | 1 + .../1.7.1/gh-5894-pre-1.7.7-upgrade/fill.lua | 1 + .../1.7.2/gh-5894-pre-1.7.7-upgrade/fill.lua | 1 + .../1.7.5/gh-5894-pre-1.7.7-upgrade/fill.lua | 1 + test/xlog/upgrade/fill.lua | 4 + 11 files changed, 829 insertions(+), 3 deletions(-) create mode 100644 test/xlog/gh-5894-pre-1.7.7-upgrade.result create mode 100644 test/xlog/gh-5894-pre-1.7.7-upgrade.test.lua create mode 120000 test/xlog/upgrade/1.6.8/gh-5894-pre-1.7.7-upgrade/fill.lua create mode 120000 test/xlog/upgrade/1.7.1/gh-5894-pre-1.7.7-upgrade/fill.lua create mode 120000 test/xlog/upgrade/1.7.2/gh-5894-pre-1.7.7-upgrade/fill.lua create mode 120000 test/xlog/upgrade/1.7.5/gh-5894-pre-1.7.7-upgrade/fill.lua -- 2.30.1 (Apple Git-130)